Skip to content

Commit

Permalink
feat: take direction into account when snapping back to active panel
Browse files Browse the repository at this point in the history
  • Loading branch information
guidobouman committed May 9, 2018
1 parent 079f390 commit 1992088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panelSnap.js
Expand Up @@ -116,7 +116,7 @@ export default class PanelSnap {

if (panelsInViewport.length > 1) {
if (Math.abs(delta) < this.options.directionThreshold && this.activePanel) {
this.snapToPanel(this.activePanel);
this.snapToPanel(this.activePanel, delta > 0);
return;
}

Expand Down

0 comments on commit 1992088

Please sign in to comment.