Skip to content

Commit

Permalink
remove unnecessary check for e.touches.length
Browse files Browse the repository at this point in the history
  • Loading branch information
elmarquis committed Jun 3, 2018
1 parent 0a269e7 commit 8a24660
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions dist/leaflet-gesture-handling.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ L.GestureHander_LanguageContent = {
};
/*
* * Leaflet Gesture Handling **
* * Version 1.1
* * Version 1.1.2
*/

L.Map.mergeOptions({
Expand Down Expand Up @@ -460,9 +460,6 @@ L.GestureHandler = L.Handler.extend({
this._disableInteractions();
} else {
e.target.classList.remove('leaflet-gesture-handling-touch-warning');
if (e.touches.length === 2) {
// this._enableInteractions();
}
}
},

Expand Down
Loading

0 comments on commit 8a24660

Please sign in to comment.