panzoom icon indicating copy to clipboard operation
panzoom copied to clipboard

Getting transform from attribute or style before panning or zooming.

Open perf2711 opened this issue 6 years ago • 0 comments

Fixes an issue when I changed the transform matrix directly by CSS, and panzoom remembering its position regardless of CSS changes. Basically, before any action (eg. mouse drag), the transform object is created from element's style (in case of DOM) or attribute (in case of SVG).

Added method getTransform to svgController and domController, and assigned its return value to transform in every action that triggers a pan or zoom.

perf2711 avatar Oct 30 '18 10:10 perf2711