Skip to content

Commit ff6406f

Browse files
committed
Always move zoomer overlay to the right when scrolling up, independent on which side of the overlay it's scrolled.
1 parent 5c62faa commit ff6406f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ui-scripts/zoomer/zoomer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ var ZoomerPrototype = function()
151151
this._zoomer_ele_onmousewheel = function(event)
152152
{
153153
var mouse_x = event.clientX - this._zoomer_ele_left;
154-
var diff = (mouse_x < this._overlay_left) ? MOUSEWHEEL_DIFF : -MOUSEWHEEL_DIFF;
155-
if (event.wheelDelta < 0)
156-
diff = -diff;
154+
var diff = (event.wheelDelta < 0) ? -MOUSEWHEEL_DIFF : MOUSEWHEEL_DIFF;
157155
this.move_overlay(diff);
158156
event.stopPropagation();
159157
};

0 commit comments

Comments
 (0)