File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 6464 dragStartY = event .clientY ;
6565 dragStartOffsetX = dragOffsetX ;
6666 dragStartOffsetY = dragOffsetY ;
67- (event .target as HTMLElement ).setPointerCapture (event .pointerId );
67+ if (event .target instanceof HTMLElement ) {
68+ event .target .setPointerCapture (event .pointerId );
69+ }
6870 }
6971
7072 /**
8183 */
8284 function handleDragEnd(event : PointerEvent ): void {
8385 isDragging = false ;
84- (event .target as HTMLElement ).releasePointerCapture (event .pointerId );
86+ if (event .target instanceof HTMLElement ) {
87+ event .target .releasePointerCapture (event .pointerId );
88+ }
8589 }
8690
8791 // Sort screenshots by createdAt (newest first)
219223 aria-label =" Screenshots panel"
220224>
221225 <div class =" w-64 max-h-[calc(100vh-32px)] bg-slate-800 rounded-xl shadow-2xl font-sans text-white flex flex-col overflow-hidden" >
222- <!-- svelte-ignore a11y_no_static_element_interactions -->
223226 <div
224227 class ="flex items-center justify-between px-3 py-2 {expanded ? ' border-b border-slate-700' : ' ' }"
225228 style ="cursor: {isDragging ? ' grabbing' : ' grab' }; user-select: none; touch-action: none;"
You can’t perform that action at this time.
0 commit comments