Skip to content

Commit

Permalink
remove "touchpadSupport" legacy option
Browse files Browse the repository at this point in the history
touchpad is best “supported” by not messing with it (so keeping this
option disabled)
  • Loading branch information
gblazex committed Nov 26, 2016
1 parent 4e078ab commit c97a7db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SmoothScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ var defaultOptions = {
arrowScroll : 50, // [px]

// Other
touchpadSupport : false, // ignore touchpad by default
fixedBackground : true,
excluded : ''
};
Expand Down Expand Up @@ -349,7 +348,7 @@ function wheel(event) {
}

// check if it's a touchpad scroll that should be ignored
if (!options.touchpadSupport && isTouchpad(deltaY)) {
if (isTouchpad(deltaY)) {
return true;
}

Expand Down

0 comments on commit c97a7db

Please sign in to comment.