From 5f9b30d44df13b76a98b8d92032863121ec48562 Mon Sep 17 00:00:00 2001 From: SepVeneto Date: Tue, 10 Dec 2024 20:42:40 +0800 Subject: [PATCH] feat: only main button trigger move --- packages/core/src/components/freeDomCore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/freeDomCore.ts b/packages/core/src/components/freeDomCore.ts index 351d4b9..f84a1b4 100644 --- a/packages/core/src/components/freeDomCore.ts +++ b/packages/core/src/components/freeDomCore.ts @@ -152,7 +152,7 @@ const freeDomCore = defineComponent({ { onMousedown: (evt: MouseEvent) => { evt.stopPropagation() - this.mousedownFn(evt) + evt.button === 0 && this.mousedownFn(evt) }, onMouseup: this.mouseupFn, },