Skip to content

Commit

Permalink
touchmoveにpreventDefaultを追加してみる
Browse files Browse the repository at this point in the history
  • Loading branch information
k35o authored Sep 15, 2024
1 parent c047f06 commit 04dcc4d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 04dcc4d

Please sign in to comment.