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

MacBooks' reverse scroll behavior #288

Open
hobz opened this issue Dec 10, 2015 · 7 comments
Open

MacBooks' reverse scroll behavior #288

hobz opened this issue Dec 10, 2015 · 7 comments

Comments

@hobz
Copy link

hobz commented Dec 10, 2015

My client is having a problem with scrolling the sections on his MacBook. When he tries to scroll it down it scrolls up and the opposite. I'm currently waiting for info whether it's a mousewheel or a trackpad behavior. I even don't have any Apple device to check it by myself...
I read the Apple reversed scroll direction when viewing websites. Are there any ideas how to fix that problem?

@raziraz
Copy link

raziraz commented Dec 10, 2015

I have the same issue.

@qikkeronline
Copy link

I've replaced:

        if (deltaOfInterest < 0) {
            el.moveDown()
        } else {
            el.moveUp()
        }

with

        if (deltaOfInterest >= 3) {
            el.moveUp()
        } else if (deltaOfInterest <= -3) {
            el.moveDown()
        }

And it seems to have resolved the issue!

@qikkeronline
Copy link

(it is because the trackbad sometimes reports -0 as a value

@torian257x
Copy link

same issue

@petermakowski
Copy link

@qikkeronline solution worked for me

@undsoft
Copy link

undsoft commented Apr 8, 2016

Same can be fixed by increasing animationTime.
onepage-scroll is flawed in a way that it doesn't account for inertia that can be produced by trackpads or magic mouse.

@petermakowski
Copy link

@undsoft there's another workaround for this: #281 (comment)

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

No branches or pull requests

6 participants