OSDN Git Service

Version 0.6.191, fix X.UI.ScrollBox & X.UI.Gesture.
[pettanr/clientJs.git] / 0.6.x / js / 20_ui / 15_ScrollBox.js
index 4948a7b..323b95b 100644 (file)
@@ -316,8 +316,10 @@ function X_UI_ScrollBox_translate( that, x, y, opt_time, opt_easing, opt_release
                );\r
        };\r
        \r
-       that.scrollX = x;\r
-       that.scrollY = y;\r
+       that.scrollX   = x;\r
+       that.scrollXEm = x / that.fontSize;\r
+       that.scrollY   = y;\r
+       that.scrollYEm = y / that.fontSize;\r
 };\r
 \r
 function X_UI_ScrollBox_onStart( e ){\r