Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Context menus on tappy links in iOS open context menu but also already follow link #29

Closed
patrickhlauke opened this issue Jan 13, 2016 · 2 comments

Comments

@patrickhlauke
Copy link

When using tappy on links, long-pressing a link in Safari/iOS opens the context menu - as soon as the finger is lifted off the screen, the link is followed, despite the context menu still being open.

See https://www.youtube.com/watch?v=P_YJe1MQ4m8

Arguably, this smells like a bug in iOS - testing the event flow using http://patrickhlauke.github.io/touch/tests/event-listener_link.html it seems that when context menu is shown, Safari/iOS doesn't consistently fire touchcancel; in fact, if you keep the finger pressed, you can actually still scroll the page underneath the context menu and it fires touchmove events, and sometimes it then fires touchend if you lift the finger while the context menu is shown. Not sure if this is something that can be caught/prevented by tappy though...

@patrickhlauke
Copy link
Author

filed an iOS bug here FWIW https://bugs.webkit.org/show_bug.cgi?id=153064

@patrickhlauke
Copy link
Author

As I don't think there's realistically anything that can be done at tappy's end to consistently work around this iOS bug, I'm closing this (in the hope that Apple fix this at source instead)

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

No branches or pull requests

1 participant