Open andrewkendall opened 5 years ago
@RWAP you're doing great work folding in fixes, you might want to take a look at this one. It works better with your updated code as you are also watching for the amount of movement before triggering a click.
@RWAP you're doing great work folding in fixes, you might want to take a look at this one. It works better with your updated code as you are also watching for the amount of movement before triggering a click.
Thanks - I have suggested a change - https://github.com/RWAP/jquery-ui-touch-punch/pull/3 Can you please verify my change - as I do not have an Apple device (let alone a Pencil!)
@RWAP I've just tested on iPad mini 5 and 12.9-inch iPad Pro. That works perfectly.
There is currently an issue when using an Apple Pencil. Using the Apple Pencil always triggers a touchmove event, meaning the simulated click doesn't work as intended.
A quick fix is to update the code to:
Hopefully, that will help someone who is struggling with click events with the Apple Pencil. If anyone has a neater update to the code I'd love to know.