panzoom
panzoom copied to clipboard
Is it possible to enable smooth zooming when using mouse wheel?
haven't found a solution for this. using transition may work but it would also affect the smooth panning
I made it work by removing the smoothScroll for the pan
smoothScroll: false
then on the css side I added a transition
transition: transform 0.6s cubic-bezier(0, 0, 0.58, 1);
using the set values for the cubic-bezier found in the panzoom.js file. It may be clunky but you can just edit the transistion values
Thanks, works like a charm.
@carljustineoyales could you explain how the transition needs to be added to css in more detail?