Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

mapbox-gl-multitouch

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-gl-multitouch - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+2
-0
dist/main.js

@@ -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",

@@ -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 @@