1
Fork 0
mirror of https://github.com/RGBCube/rgbcube.github.io synced 2025-05-30 20:58:13 +00:00

Chrome 68 fixes

This commit is contained in:
RGBCube 2023-12-20 08:38:02 +03:00
parent d2c919227a
commit 17bbad6a85
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -111,7 +111,7 @@ const orientation = {
{
const mouse = {
down: false,
lastMove: -10_000,
lastMove: -10000,
previous: null,
};
@ -207,7 +207,7 @@ const orientation = {
velocity.z = 0;
}
if (window.performance.now() - mouse.lastMove > 10_000) {
if (window.performance.now() - mouse.lastMove > 10000) {
const impulse = new Vec3(1, 1, -1);
velocity = Vec3.sum(impulse.scale(effectiveDelta * 3), velocity);
}