vue-directive-long-press icon indicating copy to clipboard operation
vue-directive-long-press copied to clipboard

Long Press does not work on Safari

Open juancamp opened this issue 5 years ago • 6 comments

I am testing long Press on Safari Version 12.1.1 (14607.2.6.1.1) and it does not work.

juancamp avatar Jun 05 '19 16:06 juancamp

+1

forpaul avatar Jun 06 '19 06:06 forpaul

can confirm, it doesn't work in ios safari

unbrokenclayman avatar Jun 24 '19 07:06 unbrokenclayman

is this only on ios safari? how about desktop safari?

FeliciousX avatar Jun 24 '19 08:06 FeliciousX

Yes, It doesn't work on desktop safari and ios safari. I tested it in Chrome and Firefox and works perfectly.

juancamp avatar Jun 25 '19 16:06 juancamp

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

unbrokenclayman avatar Jun 26 '19 13:06 unbrokenclayman

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

kiyui avatar Jun 27 '19 12:06 kiyui