Fix touch highlight for dice overlay
This commit is contained in:
parent
0d37f8c6e3
commit
6f51fd8cbe
@ -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 (
|
||||
<div
|
||||
style={{
|
||||
|
Loading…
Reference in New Issue
Block a user