modernui updates

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-22 10:07:17 -04:00
parent 34031f54d3
commit 36c356785e
11 changed files with 48 additions and 52 deletions
+3 -3
View File
@@ -1093,7 +1093,7 @@ function makeDomController(domElement, options) {
domElement.scrollTop = 0;
if (!options.disableKeyboardInteraction) {
owner.setAttribute('tabindex', 0);
if (owner) owner.setAttribute('tabindex', 0);
}
var api = {
@@ -1287,7 +1287,7 @@ function makeSvgController(svgElement, options) {
}
if (!options.disableKeyboardInteraction) {
owner.setAttribute('tabindex', 0);
if (owner) owner.setAttribute('tabindex', 0);
}
var api = {
@@ -1339,7 +1339,7 @@ function makeSvgController(svgElement, options) {
}
function applyTransform(transform) {
svgElement.setAttribute('transform', 'matrix(' +
if (svgElement) svgElement.setAttribute('transform', 'matrix(' +
transform.scale + ' 0 0 ' +
transform.scale + ' ' +
transform.x + ' ' + transform.y + ')')