-
Notifications
You must be signed in to change notification settings - Fork 4k
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 scrolled after copying on iphone #320
Comments
Hey @evecalm, thanks for reporting! Just pushed a fix for this, it's still not the best behavior possible but it's better than before. If you have any ideas, please send a pull request. |
The scroll bug still remains in Safari iOS 10 (iPhone & iPad). |
What version are you using @kkateivanova? |
@zenorocha the latest - v1.5.15 |
Just tested clipboardjs.com on Safari iOS 10.0.2 and everything seems to be working fine. |
Hey, @zenorocha, I've recorded a video - please, sorry for bad quality https://www.dropbox.com/s/6vv44mln6xyighx/iphone5s_clipboardjs.mov?dl=0. Here my iPhone 5s, IOS 10.1, safari browser and site clipboardjs.com. There are two problems:
|
scroll to top issue reproduces on safari and chrome on macos now clipboard 1.5.15 fix: el.onclick =(e) => e.preventDefault();
new Clipboard(el); |
I can reproduce this, iPhone 4S with latest iOS. It also doesn't copy the text but only scrolls. Version: 1.5.15 jsfiddle: https://jsfiddle.net/mkg3x6xk/ |
This should be fixed on |
Minimal example
To reproduce this bug, just open https://clipboardjs.com/ on Safari with iOS 10, and tap the last demo button Copy to clipboard, then the page should scroll down, but the clipboard is changed.
Expected behaviour
The web page should stay where it is.
Actual behaviour
Web page scrolled down. In my own project, the page scrolls up.
Browsers affected
I'm using Safari with iPhone 6s, iOS 10.
The text was updated successfully, but these errors were encountered: