TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Tragopan – Minimal, dependency-free pan/zoom JavaScript library

69 点作者 dxchester将近 5 年前

9 条评论

dxchester将近 5 年前
We use this library on <a href="https:&#x2F;&#x2F;team.video" rel="nofollow">https:&#x2F;&#x2F;team.video</a> for panning and zooming around in screenshares.<p>It can be really useful if you have situation where a colleague is sharing their hi-res screen, when meanwhile you&#x27;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.
评论 #23591558 未加载
评论 #23580611 未加载
kevsim将近 5 年前
Looks nice! We&#x27;ve been looking for a lightweight solution to zooming on images in the issue tracker we&#x27;re building [0]. Figured we&#x27;d end up rolling our own because we&#x27;re trying to avoid adding heavy dependencies for these little things. But this looks great, we&#x27;ll definitely give it a try!<p>0: <a href="https:&#x2F;&#x2F;kitemaker.co" rel="nofollow">https:&#x2F;&#x2F;kitemaker.co</a>
josephernest将近 5 年前
Having infinite pan&#x2F;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: <a href="https:&#x2F;&#x2F;josephernest.github.io&#x2F;bigpicture.js&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;josephernest.github.io&#x2F;bigpicture.js&#x2F;index.html</a><p>Note: I never did a mobile version, so it only works on desktop; same for the website <a href="https:&#x2F;&#x2F;bigpictu.re&#x2F;demo" rel="nofollow">https:&#x2F;&#x2F;bigpictu.re&#x2F;demo</a>
评论 #23589245 未加载
miguelmota将近 5 年前
Scroll zoom on the demo image is very choppy for me. Not sure if it&#x27;s my screen or the library itself.
评论 #23588565 未加载
评论 #23587967 未加载
sambeau将近 5 年前
I&#x27;m finding it very choppy and jumpy Safari Version 13.1.1 (14609.2.9.1.3) Mojave 10.14.6
评论 #23588228 未加载
Jarred将近 5 年前
It works well on Chrome for desktop.<p>On the demo page, it looks like you&#x27;re using CSS that isn&#x27;t supported by most browsers, which might be what causes the flickering &#x2F; jank on Safari.<p><pre><code> width: max-length; scrollbar-width: none;</code></pre>
tarkin2将近 5 年前
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.<p>Nice effort. I applaud any efforts to make a dependency free anything in js.
评论 #23587958 未加载
KaoruAoiShiho将近 5 年前
Can you write a bit about why this over other pan zoom libs.
评论 #23588011 未加载
jbverschoor将近 5 年前
Very smooth
评论 #23588125 未加载