David Figatner
David Figatner
Simpler than you think. First you need to set the canvas to the right size: ``` Object.assign(app.view.style, { width: width + 'px', height: height + 'px', overflow: 'hidden' }) ```...
Yes. Most functions are in world coordinates. Easier to work with the viewport.
The two-finger drag is part of the pinch plugin. You can listen for pinch-end if you're looking for when the user stops manipulating the viewport using pinch. snapZoom is broken....
Try v4.1.2. I fixed snapZoom() (it had old code for the easing function). Try it and let me know if you have any questions.
Viewport.pause = true should do it.
I don't think we built logic to cancel the animations. You'll have to do that manually. (Feel free to submit a PR if you can generalize it.)
Try changing viewport#options.divWheel = DOM element when initializing the viewport.
The clamp and bounce are interfering. You should only use one.
The `center` parameter in the fit function maintains the current center of the viewport after scaling. The current center is defined as the point at the middle of the screen...
You shouldn't need the viewport.update() command. The viewport.resize() command should resize and on the next draw everything should be correct. Seeing as you're using pixi.application that should happen on every...