mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-04 07:01:42 +00:00
Slowed down the chooser's horizontal scale factor
This commit is contained in:
@@ -77,7 +77,7 @@ function hoverChooser(macroNode,x,y) {
|
|||||||
// Scale the panel to fit
|
// Scale the panel to fit
|
||||||
var scaleFactor = window.innerHeight/heightPanel;
|
var scaleFactor = window.innerHeight/heightPanel;
|
||||||
// Scale up as we move right
|
// Scale up as we move right
|
||||||
var expandFactor = x > 50 ? (x/50) : 1;
|
var expandFactor = x > 50 ? ((x+150)/200) : 1;
|
||||||
// Set up the transform
|
// Set up the transform
|
||||||
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user