diff --git a/src/components/map/dice/DiceScene.js b/src/components/map/dice/DiceScene.js index 70a1d4f..eb3b3e4 100644 --- a/src/components/map/dice/DiceScene.js +++ b/src/components/map/dice/DiceScene.js @@ -4,6 +4,8 @@ import * as AMMO from "ammo.js"; import "babylonjs-loaders"; import ReactResizeDetector from "react-resize-detector"; +import usePreventTouch from "../../../helpers/usePreventTouch"; + const diceThrowSpeed = 2; function DiceScene({ onSceneMount, onPointerDown, onPointerUp }) { @@ -118,6 +120,8 @@ function DiceScene({ onSceneMount, onPointerDown, onPointerUp }) { canvasRef.current.height = height; } + usePreventTouch(containerRef); + return (