Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(gestures): fixes issue with non-clickable links #2248

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/core/services/gesture/gesture.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,18 @@

/*
* Dispatch an event with jQuery
* TODO: Make sure this sends bubbling events
* TODO: Make sure this sends $md.* bubbling events
*
* @param srcEvent the original DOM touch event that started this.
* @param eventType the name of the custom event to send (eg 'click' or '$md.drag')
* @param eventPointer the pointer object that matches this event.
*/
function jQueryDispatchEvent(srcEvent, eventType, eventPointer) {
if (eventType === 'click') {
nativeDispatchEvent(srcEvent, eventType, eventPointer);
return;
}

eventPointer = eventPointer || pointer;
var eventObj = new angular.element.Event(eventType);

Expand Down