Socket
Socket
Sign inDemoInstall

leaflet-doubletapdragzoom

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

4

CHANGELOG.md
# Leaflet.DoubleTapDragZoom Changelog
## 0.3.0 (2021-11-07)
- Fix touch event being propagated when zooming
## 0.2.0 (2018-10-29)

@@ -4,0 +8,0 @@

@@ -13,2 +13,3 @@ L.Map.mergeOptions({

this._map.on('doubletapdragend', this._onDoubleTapDragEnd, this);
L.DomEvent.on(this._map._container, 'touchmove', this._onDragging, this);
},

@@ -24,3 +25,2 @@

var map = this._map;
if (!e.touches || e.touches.length !== 1 || map._animatingZoom) { return; }

@@ -44,2 +44,3 @@

map._moveStart(true, false);
this._doubleTapDragging = true;
},

@@ -96,2 +97,10 @@

this._center = null;
this._doubleTapDragging = false;
},
_onDragging: function (e) {
if (this._doubleTapDragging) {
L.DomEvent.preventDefault(e);
L.DomEvent.stopPropagation(e);
}
}

@@ -98,0 +107,0 @@ });

2

package.json
{
"name": "leaflet-doubletapdragzoom",
"version": "0.2.0",
"version": "0.3.0",
"description": "Leaflet plugin that implements double-tap-and-drag zoom feature for zooming in / out with one hand",

@@ -5,0 +5,0 @@ "main": "Leaflet.DoubleTapDragZoom.js",

@@ -0,1 +1,8 @@

![](https://img.shields.io/npm/v/leaflet-doubletapdragzoom.svg)
![](https://img.shields.io/bundlephobia/minzip/leaflet-doubletapdragzoom.svg)
![](https://img.shields.io/npm/l/leaflet-doubletapdragzoom.svg)
![](https://img.shields.io/npm/dt/leaflet-doubletapdragzoom.svg)
# Leaflet.DoubleTapDragZoom

@@ -7,2 +14,4 @@

## Demo: https://cherniavskii.github.io/Leaflet.DoubleTapDragZoom/
## Installation

@@ -24,4 +33,4 @@

```
<script src="https://unpkg.com/leaflet">
```html
<script src="https://unpkg.com/leaflet"></script>
<script src="https://unpkg.com/leaflet-doubletapdrag"></script>

@@ -28,0 +37,0 @@ <script src="https://unpkg.com/leaflet-doubletapdragzoom"></script>

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc