Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change touchpad dir behavior in horizontalScroll : 2.x, 3.x different… #305

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

hetz
Copy link
Contributor

@hetz hetz commented May 25, 2015

hi @malihu , I upgrade malihu-custom-scrollbar-plugin from 2.x to 3.x, I see touchpad dir behavior in horizontalScroll is total different, I think same behavior is right.

…, If ( horizontalScroll && deltaX !== -0) , invert dlt, can fix it.
@hetz
Copy link
Contributor Author

hetz commented May 25, 2015

touchpad = trackpad.

@@ -1455,7 +1455,7 @@ and dependencies (minified).
dlt=e.deltaY || delta;
}
if((dir==="y" && !d.overflowed[0]) || (dir==="x" && !d.overflowed[1])){return;}
if(o.mouseWheel.invert){dlt=-dlt;}
if(o.mouseWheel.invert || (o.horizontalScroll && e.deltaX !== -0)){dlt=-dlt;}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o.horizontalScroll : that mean scroll has horizontal.

e.deltaX !== -0 : that mean mousewheel has not Y roll.

@mokeev1995
Copy link

@hetz your pull request has conflicts

@hetz
Copy link
Contributor Author

hetz commented Apr 10, 2017

@mokeev1995 , now fix confilict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants