feat: 大图查看器支持 iOS 长按"存储到照片"
去掉全尺寸图上的 select-none 并显式设 -webkit-touch-callout:default,使 iOS Safari 长按图片能弹出原生「存储到照片」菜单(保存的是 current.url 全图)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -279,11 +279,12 @@ function LightboxView({
|
|||||||
touchStartX.current = null;
|
touchStartX.current = null;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
{/* No select-none / touch-callout:none here so iOS Safari's native
|
||||||
|
long-press menu ("Save in Photos") works on the full-size image. */}
|
||||||
<img
|
<img
|
||||||
src={current.url}
|
src={current.url}
|
||||||
alt={current.filename}
|
alt={current.filename}
|
||||||
className="max-h-full max-w-full select-none object-contain"
|
className="max-h-full max-w-full object-contain [-webkit-touch-callout:default]"
|
||||||
draggable={false}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user