Remove mousedown listener on first touchstart
This commit is contained in:
@@ -266,6 +266,10 @@ ol.MapBrowserEventHandler.prototype.handleMouseMove_ = function(browserEvent) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.MapBrowserEventHandler.prototype.handleTouchStart_ = function(browserEvent) {
|
ol.MapBrowserEventHandler.prototype.handleTouchStart_ = function(browserEvent) {
|
||||||
|
if (!goog.isNull(this.mousedownListenerKey_)) {
|
||||||
|
goog.events.unlistenByKey(this.mousedownListenerKey_);
|
||||||
|
this.mousedownListenerKey_ = null;
|
||||||
|
}
|
||||||
// prevent context menu
|
// prevent context menu
|
||||||
// When the IE pointer events are used, this prevents a
|
// When the IE pointer events are used, this prevents a
|
||||||
// 'mousedown' from being fired after this event for the primary
|
// 'mousedown' from being fired after this event for the primary
|
||||||
|
|||||||
Reference in New Issue
Block a user