From 00e0b75311026fd0228e12114f9103521c24074a Mon Sep 17 00:00:00 2001 From: wangzemei Date: Fri, 28 Jun 2024 13:41:57 +0800 Subject: [PATCH] * dnd: fix moving issues. --- lib/dnd/src/vanilla/moveable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dnd/src/vanilla/moveable.ts b/lib/dnd/src/vanilla/moveable.ts index 47b6cdd6ff..b486742af5 100644 --- a/lib/dnd/src/vanilla/moveable.ts +++ b/lib/dnd/src/vanilla/moveable.ts @@ -119,7 +119,7 @@ export class Moveable extends Component { }; protected _handleMouseMove = (event: MouseEvent) => { - if (!this._state) { + if (!this._state || !event.buttons) { return; } event.preventDefault();