Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
arusahni authored Jul 14, 2018
2 parents 0cb2cb4 + 33ea262 commit 1683934
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/ext/TouchEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ L.Map.TouchExtend = L.Handler.extend({
// @method removeHooks(): void
// Removes dom listener events from the map container
removeHooks: function () {
L.DomEvent.off(this._container, 'touchstart', this._onTouchStart);
L.DomEvent.off(this._container, 'touchend', this._onTouchEnd);
L.DomEvent.off(this._container, 'touchmove', this._onTouchMove);
L.DomEvent.off(this._container, 'touchstart', this._onTouchStart, this);
L.DomEvent.off(this._container, 'touchend', this._onTouchEnd, this);
L.DomEvent.off(this._container, 'touchmove', this._onTouchMove, this);
if (this._detectIE()) {
L.DomEvent.off(this._container, 'MSPointerDowm', this._onTouchStart);
L.DomEvent.off(this._container, 'MSPointerUp', this._onTouchEnd);
L.DomEvent.off(this._container, 'MSPointerMove', this._onTouchMove);
L.DomEvent.off(this._container, 'MSPointerCancel', this._onTouchCancel);
L.DomEvent.off(this._container, 'MSPointerDowm', this._onTouchStart, this);
L.DomEvent.off(this._container, 'MSPointerUp', this._onTouchEnd, this);
L.DomEvent.off(this._container, 'MSPointerMove', this._onTouchMove, this);
L.DomEvent.off(this._container, 'MSPointerCancel', this._onTouchCancel, this);
} else {
L.DomEvent.off(this._container, 'touchcancel', this._onTouchCancel);
L.DomEvent.off(this._container, 'touchleave', this._onTouchLeave);
L.DomEvent.off(this._container, 'touchcancel', this._onTouchCancel, this);
L.DomEvent.off(this._container, 'touchleave', this._onTouchLeave, this);
}
},

Expand Down

0 comments on commit 1683934

Please sign in to comment.