mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 20:10:03 +00:00
Make the chooser work in Firefox
It doesn't work as well as Chrome, needs investigation
This commit is contained in:
parent
f98f3de5d4
commit
7970745f58
@ -82,8 +82,10 @@ function hoverChooser(macroNode,x,y) {
|
|||||||
var scale = scaleFactor * expandFactor,
|
var scale = scaleFactor * expandFactor,
|
||||||
translateX = x > 16 ? 0 : -(((16-x)/16) * widthPanel) / scale,
|
translateX = x > 16 ? 0 : -(((16-x)/16) * widthPanel) / scale,
|
||||||
translateY = (y / scale) - ((y/window.innerHeight) * heightPanel);
|
translateY = (y / scale) - ((y/window.innerHeight) * heightPanel);
|
||||||
domPanel.style.webkitTransformOrigin = "0 0";
|
domPanel.style.webkitTransformOrigin =
|
||||||
domPanel.style.webkitTransform = "scale(" + scale + ") translateX(" + translateX + "px) translateY(" + translateY + "px)";
|
domPanel.style.MozTransformOrigin = "0 0";
|
||||||
|
domPanel.style.webkitTransform =
|
||||||
|
domPanel.style.MozTransform = "scale(" + scale + ") translateX(" + translateX + "px) translateY(" + translateY + "px)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user