MediaQuickview: stop grabbing if mouse leaved

This commit is contained in:
thislight 2024-12-07 21:21:02 +08:00
parent c1467ee32a
commit 148047db17
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -249,6 +249,7 @@ const MediaQuickview: Component<MediaQuickviewProps> = (props) => {
onMouseDown={onMouseDown} onMouseDown={onMouseDown}
onMouseMove={[onMouseMove, index]} onMouseMove={[onMouseMove, index]}
onMouseUp={onMouseUp} onMouseUp={onMouseUp}
onMouseLeave={onMouseUp}
> >
<Switch> <Switch>
<Match when={item().cat === "image"}> <Match when={item().cat === "image"}>