Skip to content

Commit

Permalink
Fixed scrollByCode timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
verlok committed Sep 28, 2015
1 parent 16ce5f4 commit 3191044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/zoomLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.ZoomLight = factory(); //WTF?!?!
root.ZoomLight = factory();
}
}(this, function () {

Expand All @@ -21,8 +21,8 @@


/*
* PRIVATE FUNCTIONS *NOT RELATED* TO A SPECIFIC INSTANCE OF LAZY LOAD
* -------------------------------------------------------------------
* PRIVATE FUNCTIONS *NOT RELATED* TO A SPECIFIC INSTANCE OF ZOOM LIGHT
* --------------------------------------------------------------------
*/

function _addEventListener(element, eventName, callback) {
Expand Down Expand Up @@ -188,7 +188,7 @@
clearTimeout(this._scrollingByCodeTimer);
this._scrollingByCodeTimer = setTimeout(_bind(function () {
this._isScrollingByCode = false;
}, this, 25));
}, this), 100);

this._zoomLayerEl.scrollLeft = xStroke * xPercent;
this._zoomLayerEl.scrollTop = yStroke * yPercent;
Expand Down

0 comments on commit 3191044

Please sign in to comment.