vue-directive-long-press
vue-directive-long-press copied to clipboard
Long Press does not work on Safari
I am testing long Press on Safari Version 12.1.1 (14607.2.6.1.1) and it does not work.
+1
can confirm, it doesn't work in ios safari
is this only on ios safari? how about desktop safari?
Yes, It doesn't work on desktop safari and ios safari. I tested it in Chrome and Firefox and works perfectly.
this directive works for ios https://github.com/ittus/vue-long-click maybe you can get some ideas there from code or someone, who need ios support right now, can use it instead
Hi, we currently rely on pointer events which does not seem to be supported on Safari (though it does work on a polyfilled app we use). Could you try using a pointer events polyfill?
Does the demo work for you? https://stackblitz.com/edit/vue-directive-long-press-demo
Also looking at the linked implementation[1], it does seem to attach unnecessary event listeners and may not support pen devices. We will need to take a proper look at it though.
- [1] https://github.com/ittus/vue-long-click