News for hackers. Stuff that matters.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dxchester on Friday June 19, 2020 @06:16PM (#23579389)
We use this library on https://team.video for panning and zooming around in screenshares.

It can be really useful if you have situation where a colleague is sharing their hi-res screen, when meanwhile you're on a laptop with a lower-res screen, and you want to zoom in on their terminal or some part of the screenshare so that the text there can be easier to read.

Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by xgenecloud on Sunday June 21, 2020 @08:05AM (#23591558)
Demo link -> https://team-video.github.io/tragopan/

This looks good, will check out for one of our projects.

Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by krthr on Friday June 19, 2020 @09:07PM (#23580611)
it's always good to see companies joining OSS!
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by kevsim on Saturday June 20, 2020 @06:52AM (#23583187)
Looks nice! We've been looking for a lightweight solution to zooming on images in the issue tracker we're building [0]. Figured we'd end up rolling our own because we're trying to avoid adding heavy dependencies for these little things. But this looks great, we'll definitely give it a try!

0: https://kitemaker.co

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!)

Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by miguelmota on Saturday June 20, 2020 @05:28PM (#23587462)
Scroll zoom on the demo image is very choppy for me. Not sure if it's my screen or the library itself.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by owenshen24 on Saturday June 20, 2020 @08:13PM (#23588565)
Agreed. I'm using the latest version of Firefox.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dougwbrunton on Saturday June 20, 2020 @08:16PM (#23588588)
Which OS? There is an issue open for Firefox on iOS: https://github.com/team-video/tragopan/issues/3. Is yours different?
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by owenshen24 on Sunday June 28, 2020 @03:16PM (#23671279)
Firefox on Linux.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dougwbrunton on Saturday June 20, 2020 @06:31PM (#23587967)
What browser/os was giving you trouble?
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by miguelmota on Sunday June 21, 2020 @04:23PM (#23595103)
Firefox on Linux
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dougwbrunton on Thursday June 25, 2020 @06:53PM (#23646693)
Thank you.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by sambeau on Saturday June 20, 2020 @06:55PM (#23588135)
I'm finding it very choppy and jumpy Safari Version 13.1.1 (14609.2.9.1.3) Mojave 10.14.6
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dougwbrunton on Saturday June 20, 2020 @07:12PM (#23588228)
Is the toolbar jumpy (which is a known problem, I've just opened an issue for it at https://github.com/team-video/tragopan/issues/5), or is the zooming jumpy?
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by Jarred on Saturday June 20, 2020 @07:18PM (#23588278)
It works well on Chrome for desktop.

On the demo page, it looks like you're using CSS that isn't supported by most browsers, which might be what causes the flickering / jank on Safari.

  width: max-length;
  scrollbar-width: none;
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by tarkin2 on Saturday June 20, 2020 @05:36PM (#23587528)
Very jumpy on my iphone with firefox or chrome, sadly. Okay with safari. I suspect it’s the shoddy version of webkit apple forces upon moz and google.

Nice effort. I applaud any efforts to make a dependency free anything in js.

Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dougwbrunton on Saturday June 20, 2020 @06:30PM (#23587958)
Thanks for the report - I've filed it at https://github.com/team-video/tragopan/issues/3

I couldn't reproduce the Chrome jumpiness - what version of Chrome/iOS was giving you trouble?

Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by tarkin2 on Sunday June 21, 2020 @03:42AM (#23590520)
Latest ios. Chrome 70.0.3538.75. It’s a little better in chrome than ff, but when I pan up and down in chrome it jumps.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dougwbrunton on Thursday June 25, 2020 @06:53PM (#23646695)
Okay, thanks.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by KaoruAoiShiho on Saturday June 20, 2020 @04:48PM (#23587168)
Can you write a bit about why this over other pan zoom libs.
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by dougwbrunton on Saturday June 20, 2020 @06:36PM (#23588011)
I've opened an issue to track this request: https://github.com/team-video/tragopan/issues/4
Re:Show HN: Tragopan – Minimal, dependency-free pan/zoom Jav... by jbverschoor on Saturday June 20, 2020 @02:53PM (#23585918)
Very smooth