From 021d67b87744bf0ec38be7fe56a15d5bfd9ed779 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 15 Jan 2026 16:15:51 +0100 Subject: [PATCH] less grab --- css/stereo.css | 3 --- js/app.js | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/css/stereo.css b/css/stereo.css index 85a39a6..e8249b1 100644 --- a/css/stereo.css +++ b/css/stereo.css @@ -119,11 +119,8 @@ tr.matrix td:not(.mino) { .minoes-table .mino::before, .minoes-table .mino + :not(.mino)::before, .minoes-table .mino::after { - --highlight: hsla(60deg, 100%, 95%, 0.3); - --shadow: hsla(0deg, 0%, 0%, 0.15); --light-x: calc(-0.5 - var(--rY) / 30 - var(--column) / 10 + 1); --light-y: calc(-0.5 + var(--rX) / 20 - var(--row) / 6 + 4); - --light-z: 1; --center-x: calc(35% + var(--light-x) * 10%); --center-y: calc(35% + var(--light-y) * 10%); --center-color: hsla(var(--h), var(--s), calc(var(--l) * var(--light) * 1.1), var(--a)); diff --git a/js/app.js b/js/app.js index d2bbbe7..bc610c4 100644 --- a/js/app.js +++ b/js/app.js @@ -280,7 +280,7 @@ sceneDiv.onmousemove = function(event) { if (mousedown) { event.preventDefault() event.stopPropagation() - rX = (rX0 - event.clientY + clientY0) % 360 + rX = (rX0 - 0.5 * (event.clientY - clientY0)) % 360 screenRow.style.setProperty("--rX", rX) if (rX >= 0) { screenRow.classList.remove("top") @@ -289,7 +289,7 @@ sceneDiv.onmousemove = function(event) { screenRow.classList.add("top") screenRow.classList.remove("bottom") } - rY = (rY0 + event.clientX - clientX0) % 360 + rY = (rY0 + 0.5 * (event.clientX - clientX0)) % 360 screenRow.style.setProperty("--rY", rY) if (rY <= 0) { screenRow.classList.remove("left")