News for hackers. Stuff that matters.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by josephernest on Saturday June 20, 2020 @07:38PM (#23588377)
Having infinite pan/zoom is a very exciting, you always have free room to write new things! I made BigPicture a few years ago for this purpose. Live demo: https://josephernest.github.io/bigpicture.js/index.html

Note: I never did a mobile version, so it only works on desktop; same for the website https://bigpictu.re/demo

Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dxchester on Saturday June 20, 2020 @10:29PM (#23589245)
Nice, that is a cool concept. Part of the motivation with tragopan was to see if using native scrolling could be a more natural fit especially on mobile, versus the more common way of using transform/translate.

On BigPicture, two bits of feedback for what it's worth:

- Maybe try `user-select: none` while a user is panning? Otherwise I end up inadvertently selecting text sometimes when I try to pan around, especially in Firefox

- I couldn't figure out how to make a given bit of text bigger or smaller, like the demo shows is obviously possible. I did make it happen a few times but then couldn't understand what steps had actually led to the change... Maybe some instructions on that, or just a floating toolbar could help (even though the toolbar-less aesthetic and approach is otherwise pretty nice!)