From 8a0bfacb0d7b3afc2b271202c792fec2740df24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E6=9C=A8?= <31089228+StringKe@users.noreply.github.com> Date: Mon, 18 Oct 2021 17:32:10 +0800 Subject: [PATCH] fix: Remove the console output statement. (#370) --- .changeset/remove-console-log.md | 5 +++++ .changeset/seven-kiwis-peel.md | 5 +++++ packages/core/src/engines/DragEngine.ts | 2 -- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/remove-console-log.md create mode 100644 .changeset/seven-kiwis-peel.md diff --git a/.changeset/remove-console-log.md b/.changeset/remove-console-log.md new file mode 100644 index 000000000..4ced3ead9 --- /dev/null +++ b/.changeset/remove-console-log.md @@ -0,0 +1,5 @@ +--- +"@use-gesture/core": patch +--- + +fix: Remove the console output statement. diff --git a/.changeset/seven-kiwis-peel.md b/.changeset/seven-kiwis-peel.md new file mode 100644 index 000000000..4ced3ead9 --- /dev/null +++ b/.changeset/seven-kiwis-peel.md @@ -0,0 +1,5 @@ +--- +"@use-gesture/core": patch +--- + +fix: Remove the console output statement. diff --git a/packages/core/src/engines/DragEngine.ts b/packages/core/src/engines/DragEngine.ts index 0e0c5f808..d9615b2a3 100644 --- a/packages/core/src/engines/DragEngine.ts +++ b/packages/core/src/engines/DragEngine.ts @@ -75,8 +75,6 @@ export class DragEngine extends CoordinatesEngine<'drag'> { const config = this.config const state = this.state - console.log(config.pointerButtons) - if (event.buttons != null && event.buttons !== config.pointerButtons) return this.ctrl.setEventIds(event) // We need to capture all pointer ids so that we can keep track of them when