You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
This is more of a question than an issue but here goes...
If the target of a pointer event is an A tag (i.e., a hyperlink), and I don't want the default navigation behavior to take place, where should I put the call to evt.preventDefault() when using pointer.js?
I'm guessing I'd add a click event listener that called preventDefault() to all links, ala jQuery style...
$('a').click(function(e){e.preventDefault()});
...but I was wondering if there was a more elegant way to do this with pointer.js?
TIA!
j
The text was updated successfully, but these errors were encountered:
Hi!
This is more of a question than an issue but here goes...
If the target of a pointer event is an A tag (i.e., a hyperlink), and I don't want the default navigation behavior to take place, where should I put the call to evt.preventDefault() when using pointer.js?
I'm guessing I'd add a click event listener that called preventDefault() to all links, ala jQuery style...
$('a').click(function(e){e.preventDefault()});
...but I was wondering if there was a more elegant way to do this with pointer.js?
TIA!
j
The text was updated successfully, but these errors were encountered: