Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

panzoom

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

panzoom - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

6

index.js

@@ -39,2 +39,3 @@ /* globals SVGElement */

owner.setAttribute('tabindex', 1); // TODO: not sure if this is really polite
options = options || {}

@@ -50,2 +51,3 @@

var boundsPadding = typeof options.boundsPaddding === 'number' ? options.boundsPaddding : 0.05
var zoomDoubleClickSpeed = typeof options.zoomDoubleClickSpeed === 'number' ? options.zoomDoubleClickSpeed : defaultDoubleTapZoomSpeed

@@ -429,3 +431,3 @@ var lastTouchEndTime = 0

if (now - lastTouchEndTime < doubleTapSpeedInMS) {
smoothZoom(mouseX, mouseY, defaultDoubleTapZoomSpeed)
smoothZoom(mouseX, mouseY, zoomDoubleClickSpeed)
}

@@ -447,3 +449,3 @@

function onDoubleClick(e) {
smoothZoom(e.clientX, e.clientY, defaultDoubleTapZoomSpeed)
smoothZoom(e.clientX, e.clientY, zoomDoubleClickSpeed)

@@ -450,0 +452,0 @@ e.preventDefault()

{
"name": "panzoom",
"version": "2.2.1",
"version": "2.3.0",
"description": "Pan and zoom SVG elements",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc