snap.svg.zpd icon indicating copy to clipboard operation
snap.svg.zpd copied to clipboard

Listen for pan/zoom events

Open jonnymaceachern opened this issue 9 years ago • 1 comments

Is this possible? I'm displaying a tooltip for elements and because it doesn't scale/move with the svg, I'd like to dismiss it when those events are fired. At the moment I'm using a mousewheel jquery plugin on the svg element, but I'd like a fix for panning as well. Thanks

jonnymaceachern avatar Aug 26 '15 12:08 jonnymaceachern

Hi @jonnymaceachern,

unfortunately, this is currently not implemented. I am planning to start a rewrite of the plugin at some point that will use an event pipeline for interaction. This would simplify integration with custom elements and also enable support for touch devices using third party libraries.

However, I cannot provide a timeline yet. Thus, you might need to create a fork of the plugin and add some code to raise those events yourself.

tikiatua avatar Aug 26 '15 13:08 tikiatua