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 · 6 comments
Open

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

gbrle opened this issue Nov 17, 2019 · 6 comments

Comments

@gbrle
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

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
Copy link
Owner

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

@FazleRabbiRana
Copy link

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 !

"height":"100vh" is working perfectly for me too.

Thanks.

@yanballas
Copy link

@akapowl hi! U can help me fix that problem? 100vh and 100% doents work :(

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

No branches or pull requests

5 participants