Skip to content

Commit

Permalink
#214 - softdblclick as its own event to conflict with real dblclick i…
Browse files Browse the repository at this point in the history
…n Edge/IE11 w/ pointer events
  • Loading branch information
ryanttb committed Jun 5, 2016
1 parent 04f540e commit 25a89be
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/jquery.geo.geomap.js
Expand Up @@ -253,9 +253,11 @@

$(document).keydown($.proxy(this._document_keydown, this));

//if ( !this._softDblClick ) {
if ( this._softDblClick ) {
this._$eventTarget.on( 'softdblclick', $.proxy(this._eventTarget_dblclick, this));
} else {
this._$eventTarget.dblclick($.proxy(this._eventTarget_dblclick, this));
//}
}

this._$eventTarget.bind(touchStartEvent, $.proxy(this._eventTarget_touchstart, this));

Expand Down Expand Up @@ -1658,6 +1660,8 @@
}

this._inOp = false;

this._logTap( e, 'x' );
},

_logTap: function( e, loc ) {
Expand Down Expand Up @@ -2362,7 +2366,7 @@
if ( doInteractiveTimeout ) {
this._setInteractiveTimeout( true );
}
this._$eventTarget.trigger("dblclick", e);
this._$eventTarget.trigger("softdblclick", e);
return false;
}
}
Expand Down

0 comments on commit 25a89be

Please sign in to comment.