Comparing version 7.0.2 to 7.0.3
@@ -146,3 +146,4 @@ 'use strict'; | ||
// TODO: this duplicates autocenter. I think autocenter should go. | ||
var size = transformToScreen(owner.clientWidth, owner.clientHeight) | ||
let clientRect = owner.getBoundingClientRect() | ||
var size = transformToScreen(clientRect.width, clientRect.height) | ||
@@ -149,0 +150,0 @@ var rectWidth = rect.right - rect.left |
{ | ||
"name": "panzoom", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "Extensible, mobile friendly pan and zoom framework (supports DOM and SVG).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ # panzoom [![Build Status](https://travis-ci.org/anvaka/panzoom.svg)](https://travis-ci.org/anvaka/panzoom) | ||
* [YASIV](http://www.yasiv.com/#/Search?q=algorithms&category=Books&lang=US) - my hobby project | ||
* [SVG Tiger](https://jsfiddle.net/uwxcmbyg/) - js fiddle | ||
* [SVG Tiger](https://jsfiddle.net/uwxcmbyg/609/) - js fiddle | ||
@@ -111,3 +111,3 @@ # Usage | ||
See [JSFiddle](https://jsfiddle.net/uwxcmbyg/1/) console for a demo. | ||
See [JSFiddle](https://jsfiddle.net/uwxcmbyg/609/) console for a demo. | ||
@@ -114,0 +114,0 @@ ## Ignore mouse wheel |
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
369085
2639