mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(web): scrubber drag handles mouseup outside window
Change-Id: Ida12f972e012df8cb3470135e62394d26a6a6964
This commit is contained in:
@@ -493,7 +493,13 @@
|
|||||||
|
|
||||||
<svelte:window
|
<svelte:window
|
||||||
bind:innerHeight={windowHeight}
|
bind:innerHeight={windowHeight}
|
||||||
onmousemove={({ clientY }) => (isDragging || isHover) && handleMouseEvent({ clientY })}
|
onmousemove={(e) => {
|
||||||
|
if (isDragging && (e.buttons & 1) === 0) {
|
||||||
|
handleMouseEvent({ clientY: e.clientY, isDragging: false });
|
||||||
|
} else if (isDragging || isHover) {
|
||||||
|
handleMouseEvent({ clientY: e.clientY });
|
||||||
|
}
|
||||||
|
}}
|
||||||
onmousedown={({ clientY }) => isHover && handleMouseEvent({ clientY, isDragging: true })}
|
onmousedown={({ clientY }) => isHover && handleMouseEvent({ clientY, isDragging: true })}
|
||||||
onmouseup={({ clientY }) => handleMouseEvent({ clientY, isDragging: false })}
|
onmouseup={({ clientY }) => handleMouseEvent({ clientY, isDragging: false })}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user