From 399e8d710c04b2d2941536556c92c73060a9e3bf Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 14 Mar 2012 17:41:18 +0000 Subject: [PATCH] Slide the chooser in as the touch/mouse moves right --- js/macros/chooser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/macros/chooser.js b/js/macros/chooser.js index 78621ef1d..45d1c96cb 100644 --- a/js/macros/chooser.js +++ b/js/macros/chooser.js @@ -80,7 +80,7 @@ function hoverChooser(macroNode,x,y) { var expandFactor = x > 50 ? (x/50) : 1; // Set up the transform var scale = scaleFactor * expandFactor, - translateX = 0, //x > 50 ? 0 : -(((50-x)/50) * widthPanel) / scale, + translateX = x > 16 ? 0 : -(((16-x)/16) * widthPanel) / scale, translateY = (y / scale) - ((y/window.innerHeight) * heightPanel); domPanel.style.webkitTransformOrigin = "0 0"; domPanel.style.webkitTransform = "scale(" + scale + ") translateX(" + translateX + "px) translateY(" + translateY + "px)";