Skip to content

Commit

Permalink
Addressing regression of perpendicular scrolling lock, ref #41
Browse files Browse the repository at this point in the history
  • Loading branch information
darsain committed Nov 17, 2013
1 parent 01b97a4 commit b191eb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sly.js
Original file line number Diff line number Diff line change
Expand Up @@ -1424,12 +1424,11 @@
dragging.delta += dragging.swing;
dragging.tweese = Math.abs(dragging.swing) > 10;
}
} else {
} else if (dragging.locked || !dragging.touch) {
stopDefault(event);
}

slideTo(dragging.slidee ? Math.round(dragging.initPos - dragging.delta) : handleToSlidee(dragging.initPos + dragging.delta));

}

/**
Expand Down

0 comments on commit b191eb6

Please sign in to comment.