anvaka / panzoom

Universal pan and zoom library (DOM, SVG, Custom)

Home Page:https://anvaka.github.io/panzoom/demo/attach-via-script.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Override default onDoubleClick Functionality

RahulRaj97 opened this issue · comments

Hi Team. I hope you are all doing good. I recently integrated panzoom in our organization and its really great and helpful. Kudos to the team :)

I am stuck with an issue and needed some help. I want to prevent the default onDoubleClick functionality and implement my own. I see this as a solution but it didn't work for me: #46. Adding

panzoom(element, { zoomDoubleClickSpeed: 1, });

disables the smoothZoom func. Any help would mean a lot. Thanks