pinchzoom
pinchzoom copied to clipboard
Add onUpdate callback
Because the container calculation is wrapped in a setTimeout
callback, it is difficult to trigger anything after this is called. Adding an onUpdate
callback inside there allows easily hooking into this.
Updated the docs to include this also.
I was just about to do something like this myself... Would be great if this got merged in!
@skmbr Can you checkout this branch and see if it works for your use-case?