manuelstofer / pinchzoom

A Javascript library providing multi-touch gestures for zooming and dragging on any DOM element.
http://manuelstofer.github.com/pinchzoom/
MIT License
915 stars 292 forks source link

Bad screen bounce with large images #113

Open GaryG54 opened 4 years ago

GaryG54 commented 4 years ago

When displaying an image that is 10mb jpeg in a simple image control with pinchzoom applied, the bounce is very bad. If you are zoomed enough and down in a lower quadrant, you will see the upper quadrant flash in a lot as you zoom/drag/pinch. I got these results with v2.2.0. I then applied the wrapper from the demo v2.2.0 to the v2.3.4 source and now pinchzoom makes the image .4% x .4% at startup. I'm a bit frustrated. I don't know if the v2.3.4 doesn't work, or the documentation about invoking it was never updated with critical information. And why only provide a modular ES6 module, when the name of the control is pinchzoom JS.

A working demo (not in modular form, or at least appropriately wrapped) would be real nice.

Thanks Gary

sandstrom commented 4 years ago

Thanks for thinking about how this project can be improved! Since this code is open-source, without anyone getting paid to work on it, it's difficult to satisfy all the wishes that people may have. I hope you understand! 🌻

So if you want something, a good first step is to explain in detail what you think should be changed. If others agree that it's a good idea, the next step would be for you to open a PR with the necessary code changes.

If you want to help out improving this project I'm happy to discuss and give feedback on a proposed change.

GaryG54 commented 4 years ago

Thanks for the quick reply. I have some more pressing work that needs completing. In a few weeks I will get back to this and create examples of 2.2.0 vs 2.3.4 and what issues I see.