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
And it prevents me from using native <a> tag. Browser is not reacting after click.
I'm not calling e.halt or e.cancel so I expect none event will be blocked by above definition.
I think it happens here:
Imba.Events.register('click',function(e){// Only for main mousebutton, no?if((e.timeStamp-lastNativeTouchTimeStamp)>lastNativeTouchTimeout){vartap=newImba.Event(e);tap.setType('tap');tap.process();if(tap._responder){returne.preventDefault();// <---- HERE!};};// delegate the real click eventreturnImba.Events.delegate(e);});
The text was updated successfully, but these errors were encountered:
You found the right place, thanks for digging into it yourself :)
ontap is a special case because it unifies touches (mobile etc) and mouse. If you use onclick instead it should work as expected. We should add a clean method for letting the tap through, but right now it will cancel the native click if any tags respond to the event with ontap. This is a hack, but you can work around it by doing:
I have such definition in layout:
And it prevents me from using native
<a>
tag. Browser is not reacting after click.I'm not calling
e.halt
ore.cancel
so I expect none event will be blocked by above definition.I think it happens here:
The text was updated successfully, but these errors were encountered: