aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-15 16:08:37 -0700
committerValerio Virgillito2012-05-15 16:08:37 -0700
commit94855a2c1074f67f158b94ca0d61c51ee46c51b5 (patch)
treef32e8b27851f71a82ca53b06802bbe10f4530583 /js
parent17bbf73c73eadf018b03bb21a7da571901b5a389 (diff)
downloadninja-94855a2c1074f67f158b94ca0d61c51ee46c51b5.tar.gz
fixed the mouse wheel scroll
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/stage/stage.reel/stage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index e66c5b7b..deed4112 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -387,9 +387,9 @@ exports.Stage = Montage.create(Component, {
387 handleMousewheel: { 387 handleMousewheel: {
388 value: function(event) { 388 value: function(event) {
389 if(event._event.wheelDelta > 0) { 389 if(event._event.wheelDelta > 0) {
390 this._iframeContainer.scrollTop -= 20; 390 this.application.ninja.currentDocument.model.views.design.document.body.scrollTop -= 20;
391 } else { 391 } else {
392 this._iframeContainer.scrollTop += 20; 392 this.application.ninja.currentDocument.model.views.design.document.body.scrollTop += 20;
393 } 393 }
394 } 394 }
395 }, 395 },