Skip to content

Inner draggable element and mobile events #437

Answered by idiotWu
dellyn asked this question in Q&A
Discussion options

You must be logged in to vote

Try calling preventDefault() on touchmove/pointermove events (depending on which event you are listening to), for example:

draggableEl.addEventListener('touchmove', e => {
  e.preventDefault();
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dellyn
Comment options

Answer selected by dellyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants