From 04dcc4debf389f39ee00ae6c8bbc656d8283b4b0 Mon Sep 17 00:00:00 2001 From: k8o <61353435+k35o@users.noreply.github.com> Date: Mon, 16 Sep 2024 02:11:28 +0900 Subject: [PATCH 1/5] =?UTF-8?q?touchmove=E3=81=ABpreventDefault=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E3=81=97=E3=81=A6=E3=81=BF=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rounded/_components/control-panel/use-control-panel.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts index 74d5879f..aa3e3431 100644 --- a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts +++ b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts @@ -104,6 +104,7 @@ export const useControlPanel = () => { e.preventDefault(); setActivePosition(position); const touchMoveHandler = (e: TouchEvent) => { + e.preventDefault(); setPosition((prev) => { const changedTouches = e.changedTouches[0]; if (!containerRef.current || !changedTouches) { From cfff01e04d4d4c9e1bf03a18675fb9dbb457a03b Mon Sep 17 00:00:00 2001 From: k8o <61353435+k35o@users.noreply.github.com> Date: Mon, 16 Sep 2024 02:18:39 +0900 Subject: [PATCH 2/5] =?UTF-8?q?passive=E3=82=92false=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_components/control-panel/use-control-panel.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts index aa3e3431..00894c6a 100644 --- a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts +++ b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts @@ -139,7 +139,13 @@ export const useControlPanel = () => { setActivePosition(null); window.removeEventListener('touchmove', touchMoveHandler); }); - window.addEventListener('touchmove', touchMoveHandler); + window.addEventListener( + 'touchmove', + touchMoveHandler, + { + passive: false, + }, + ); }, [], ); From a01d26405002c10d1cdfb9898c78f29b07497b55 Mon Sep 17 00:00:00 2001 From: k8o <61353435+k35o@users.noreply.github.com> Date: Mon, 16 Sep 2024 02:26:56 +0900 Subject: [PATCH 3/5] fmt --- .../_components/control-panel/use-control-panel.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts index 00894c6a..a36723e0 100644 --- a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts +++ b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts @@ -139,13 +139,9 @@ export const useControlPanel = () => { setActivePosition(null); window.removeEventListener('touchmove', touchMoveHandler); }); - window.addEventListener( - 'touchmove', - touchMoveHandler, - { - passive: false, - }, - ); + window.addEventListener("touchmove", touchMoveHandler, { + passive: false, + }); }, [], ); From 6b1f5ec52203a0182f2b7639376df14dc0c06765 Mon Sep 17 00:00:00 2001 From: k8o <61353435+k35o@users.noreply.github.com> Date: Mon, 16 Sep 2024 02:36:31 +0900 Subject: [PATCH 4/5] single quote --- .../rounded/_components/control-panel/use-control-panel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts index a36723e0..8b88c460 100644 --- a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts +++ b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts @@ -139,9 +139,9 @@ export const useControlPanel = () => { setActivePosition(null); window.removeEventListener('touchmove', touchMoveHandler); }); - window.addEventListener("touchmove", touchMoveHandler, { - passive: false, - }); + window.addEventListener('touchmove', touchMoveHandler, { + passive: false, + }); }, [], ); From 6ded15eef49594c6f016b99e8dea50505f1acca5 Mon Sep 17 00:00:00 2001 From: k8o <61353435+k35o@users.noreply.github.com> Date: Mon, 16 Sep 2024 02:39:05 +0900 Subject: [PATCH 5/5] Space --- .../rounded/_components/control-panel/use-control-panel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts index 8b88c460..6220329e 100644 --- a/src/app/designs/rounded/_components/control-panel/use-control-panel.ts +++ b/src/app/designs/rounded/_components/control-panel/use-control-panel.ts @@ -139,9 +139,9 @@ export const useControlPanel = () => { setActivePosition(null); window.removeEventListener('touchmove', touchMoveHandler); }); - window.addEventListener('touchmove', touchMoveHandler, { - passive: false, - }); + window.addEventListener('touchmove', touchMoveHandler, { + passive: false, + }); }, [], );