Comparing version 2.2.1 to 2.3.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127379
1364