Skip to content

Commit

Permalink
refactor: reserve scrollTimeout variable on init
Browse files Browse the repository at this point in the history
  • Loading branch information
guidobouman committed May 9, 2018
1 parent f68030b commit 95555e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/panelSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default class PanelSnap {
this.events = [];
this.isEnabled = true;
this.isInteracting = false;
this.scrollTimeout = null;
this.animation = null;
this.currentScrollOffset = this.scrollContainer.scrollTop;
this.targetScrollOffset = this.currentScrollOffset;
Expand Down

0 comments on commit 95555e8

Please sign in to comment.