mirror of
https://github.com/RGBCube/rgbcube.github.io
synced 2025-05-14 05:54:58 +00:00
Disable scrolling
This commit is contained in:
parent
bcf8f20d21
commit
f3b76a5d81
1 changed files with 3 additions and 0 deletions
3
cube.js
3
cube.js
|
@ -137,6 +137,9 @@ const orientation = {
|
|||
document.addEventListener("touchstart", handleDown);
|
||||
|
||||
const handleMove = (event) => {
|
||||
// Disables scrolling.
|
||||
event.preventDefault();
|
||||
|
||||
if (!mouse.down) return;
|
||||
|
||||
const newMouse = new Vec3(event.clientX, event.clientY, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue