1
Fork 0
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:
RGBCube 2023-12-19 19:39:10 +03:00
parent bcf8f20d21
commit f3b76a5d81
No known key found for this signature in database

View file

@ -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);