mapbox-gl-multitouch
Advanced tools
+2
-0
@@ -71,5 +71,7 @@ 'use strict'; | ||
| this.map = map; | ||
| this.container = document.createElement('div'); | ||
| this.map.getContainer().addEventListener('touchstart', this.touchStart, false); | ||
| this.map.getContainer().addEventListener('touchmove', this.touchMove, false); | ||
| if ('ontouchstart' in document.documentElement) map.dragPan.disable(); | ||
| return this.container; | ||
| } | ||
@@ -76,0 +78,0 @@ }, { |
+1
-1
| { | ||
| "name": "mapbox-gl-multitouch", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "Two-finger panning for mapbox-gl-js", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main.js", |
+2
-0
@@ -55,5 +55,7 @@ class MultiTouch { | ||
| this.map = map; | ||
| this.container = document.createElement('div'); | ||
| this.map.getContainer().addEventListener('touchstart', this.touchStart, false); | ||
| this.map.getContainer().addEventListener('touchmove', this.touchMove, false); | ||
| if ('ontouchstart' in document.documentElement) map.dragPan.disable(); | ||
| return this.container; | ||
| } | ||
@@ -60,0 +62,0 @@ |
6184
2.69%134
3.08%