Add touch screen dragging support to minimap (#4781)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: snomiao <7323030+snomiao@users.noreply.github.com>
This commit is contained in:
Copilot
2025-08-07 17:36:27 +08:00
committed by GitHub
parent 04f8ae416f
commit e77411d9da
3 changed files with 126 additions and 38 deletions

View File

@@ -4,10 +4,10 @@
ref="containerRef"
class="litegraph-minimap absolute bottom-[20px] right-[90px] z-[1000]"
:style="containerStyles"
@mousedown="handleMouseDown"
@mousemove="handleMouseMove"
@mouseup="handleMouseUp"
@mouseleave="handleMouseUp"
@pointerdown="handlePointerDown"
@pointermove="handlePointerMove"
@pointerup="handlePointerUp"
@pointerleave="handlePointerUp"
@wheel="handleWheel"
>
<canvas
@@ -40,9 +40,9 @@ const {
height,
init,
destroy,
handleMouseDown,
handleMouseMove,
handleMouseUp,
handlePointerDown,
handlePointerMove,
handlePointerUp,
handleWheel
} = minimap