swiper icon indicating copy to clipboard operation
swiper copied to clipboard

Move click/tap events to onClick handler to fix bug with double tapping on mobile Chrome

Open broox opened this issue 1 year ago • 3 comments

There was an issue in which double tap events were not being emitted on mobile Chrome.

On mobile Chrome, the second touch event was not being emitted appropriately, which resulted in touch times being much longer than 300ms.

The click event is being emitted on all browsers, as expected. This change moves tap/click events to the onClick handler, which I think makes more sense. This change fixes the bug for me.

Closes: #7309

broox avatar Feb 10 '24 21:02 broox