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

Page is scrolling around when trying to sign #626

Closed
joanrotbard opened this issue Jun 6, 2022 · 6 comments
Closed

Page is scrolling around when trying to sign #626

joanrotbard opened this issue Jun 6, 2022 · 6 comments

Comments

@joanrotbard
Copy link

joanrotbard commented Jun 6, 2022

version: Signature Pad v4.0.3
iPhone SE using iOS 15.4.1

This issue only seems to occur in the iOS application. The only place I experience the page scrolling up and down while I’m trying to sign is in in the iOS application.

  • There is no specific part of the screen that it happens on. You can touch anywhere, and it will treat your touch like you’ve grabbed the page to scroll. The “ink” still shows up as I’m trying to sign, but because the page also scrolls at the same time with my movement it makes it impossible to write a clear signature.
@joanrotbard joanrotbard changed the title Page is scrolling when signature ( Only iphone using safari) Page is scrolling around when trying to sign Jun 6, 2022
@UziTech
Copy link
Collaborator

UziTech commented Jun 7, 2022

I don't have an iOS device to debug this but if someone wants to contribute a fix I would be happy to merge it.

@sinswear
Copy link

sinswear commented Jun 8, 2022

I also run into this problem.
My solution is use iNoBounce.js.
Just make sure your iNoBounce.isEnabled() is correct.

@zekeriyaerogluu
Copy link

I also run into this problem. My solution is use iNoBounce.js. Just make sure your iNoBounce.isEnabled() is correct.

Can you give some information on how you use it? my scroll is broken.

@Hermanverschooten
Copy link

If you add style="touch-action: none;" to the element then it will prevent this.

@UziTech
Copy link
Collaborator

UziTech commented Oct 15, 2022

touch-action: none should already be set.

this.canvas.style.touchAction = 'none';

@Hermanverschooten
Copy link

Hermanverschooten commented Oct 15, 2022

Ah yes, I had to put it on the surrounding div for it to stop scrolling.

@UziTech UziTech closed this as completed Jul 25, 2023
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