Skip to content

开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.

fix: fix moving and selection error since leave out pointerMove, some plugins don't work

pubuzhixing8193e193eb6f6
diff --git a/packages/drawnix/src/plugins/freehand/with-freehand-create.ts b/packages/drawnix/src/plugins/freehand/with-freehand-create.ts
index 01596a7..b06e068 100644
--- a/packages/drawnix/src/plugins/freehand/with-freehand-create.ts
+++ b/packages/drawnix/src/plugins/freehand/with-freehand-create.ts
@@ -112,7 +112,9 @@ export const withFreehandCreate = (board: PlaitBoard) => {
}
if (isTwoFingerMode(board) && isDrawing) {
complete(true);
+ return;
}
+ pointerMove(event);
};
board.pointerUp = (event: PointerEvent) => {