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

The sensitivity of the scroll to the anchor too sensitive #188

Open
gbrle opened this issue Nov 17, 2019 · 4 comments
Open

The sensitivity of the scroll to the anchor too sensitive #188

gbrle opened this issue Nov 17, 2019 · 4 comments
Labels

Comments

@gbrle
Copy link

@gbrle gbrle commented Nov 17, 2019

Hi, again me :)
I have a problem of sensitivity, when I barely touch the screen in mobile version, I go directly to the anchor after.

How can I solve this problem?

Thank you :)

@gbrle

This comment has been minimized.

Copy link
Author

@gbrle gbrle commented Nov 17, 2019

Apparently the "touchSensitivity" is used to solve the problem, but it does not work, nothing changes when I change the value :(

I am blocked

@akapowl

This comment has been minimized.

Copy link

@akapowl akapowl commented Nov 17, 2019

Hello there,
I have been using Pagepiling for quite a while now, and this issue has bothered me ever since. I never got to finding a fix until I saw your post today and decided to give it one more try for myself.

After quite a while, I stumbled upon this reported issue:
#52

...and figured, that the sensitivity didn't work because in my case container.height() also returned 0.
So as proposed on Bountysource, I set my container-height manually to 100%.

In the jquery.pagepiling.js file I changed this:

    $(container).css({
        'overflow' : 'hidden',
        '-ms-touch-action': 'none',  /* Touch detection for Windows 8 */
        'touch-action': 'none'       /* IE 11 on Windows Phone 8.1*/
    });

...to this:

    $(container).css({
        'height': '100%',
        'overflow' : 'hidden',
        '-ms-touch-action': 'none',  /* Touch detection for Windows 8 */
        'touch-action': 'none'       /* IE 11 on Windows Phone 8.1*/
    });

This seems to have fixed my issue. On my mobile device, pagepiling no longer fires, when I just tap the screen, but actually now only fires when it recognizes a swiping motion.
Hope this helps resolving your issue, too.

@gbrle

This comment has been minimized.

Copy link
Author

@gbrle gbrle commented Nov 17, 2019

Perfect !!!

But, for me, the "100%" not work, "100vh" is OK.

On pagepiling 1.5.5 , the line is :

height: '100vh',overflow:"hidden","-ms-touch-action":"none","touch-action":"none"

Thx you so much !

@alvarotrigo

This comment has been minimized.

Copy link
Owner

@alvarotrigo alvarotrigo commented Nov 18, 2019

Thanks for the insights guys!
I'll try to fix it at some point!

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.