Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Prevent default? #4

Closed
jonathanstark opened this issue Jun 28, 2013 · 0 comments
Closed

Prevent default? #4

jonathanstark opened this issue Jun 28, 2013 · 0 comments
Assignees
Labels
ARCHIVED - http://mzl.la/ghe-archive CLOSED at time of archiving
Milestone

Comments

@jonathanstark
Copy link

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

@ghost ghost assigned potch Jul 15, 2013
@cknowles-admin cknowles-admin added the ARCHIVED - http://mzl.la/ghe-archive CLOSED at time of archiving label Jan 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARCHIVED - http://mzl.la/ghe-archive CLOSED at time of archiving
Projects
None yet
Development

No branches or pull requests

3 participants