Skip to content

Commit e326d41

Browse files
committed
No need to move overlay if diff is 0, thanks @p01.
1 parent 392e713 commit e326d41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ui-scripts/zoomer/zoomer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ var ZoomerPrototype = function()
442442
diff = Math.max(this._overlay_left + diff, 0) - this._overlay_left;
443443
else
444444
diff = Math.min(diff, this._overlay_right);
445-
this.change_overlay_size(diff, diff);
445+
446+
if (diff != 0)
447+
this.change_overlay_size(diff, diff);
446448
};
447449

448450
/**

0 commit comments

Comments
 (0)