enyojs/enyo — Issue #28: It's impossible to prevent change of url in ontap handler
Author: piranha
Created: 2012-03-02 03:04:40+00:00
State: open

Not sure if that's a bug, but docs encourage usage of `ontap` instead of `onclick` to wrap both mouse and touch events.

I would like to handle my links without having them change my url, which I usually can do with `e.preventDefault()`. But in case of `ontap` doing `inEvent.preventNativeDefault()` does nothing, since `ontap` is fired on `mouseup` event. So I ended up with binding `onclick` and preventing change on url there. Any thoughts?