An agent skill for creating detailed, interactive isometric illustrations of real-world machines and complex systems. Generates polished SVGs with optional WebGL shaders and 3D effects.
fix(turning-dial): stop touring when reduced motion is enabled
aakash-kharbd2dae59b90e2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8152ae2..601cf9e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,6 +12,8 @@ All notable changes to Anatomy are recorded here. The format follows [Keep a Cha### Fixed+- The turning dial stops its idle tour when reduced motion is enabled while the page is open and cancels its pending automatic restart while preserving keyboard and pointer input.+- `examples/test-rig/` drew its glass button dark in the light theme. `stretch.css` now has light values for its own colours.### Changeddiff --git a/examples/turning-dial/live.js b/examples/turning-dial/live.jsindex 9281df5..c33ba92 100644--- a/examples/turning-dial/live.js+++ b/examples/turning-dial/live.js@@ -236,6 +236,10 @@ function tick(now) {const dt = last ? Math.min((now - last) / 1000, 1 / 30) : 1 / 60;last = now;const calm = still.matches;+ if (calm) {+ touring = false;+ clearTimeout(idle);+ }if (touring) {target += SPEED * dt;clock += dt;diff --git a/examples/turning-dial/turning-dial-light.html b/examples/turning-dial/turning-dial-light.htmlindex 154e975..f0a6c6c 100644--- a/examples/turning-dial/turning-dial-light.html+++ b/examples/turning-dial/turning-dial-light.html@@ -4232,6 +4232,10 @@ function tick(now) {const dt = last ? Math.min((now - last) / 1000, 1 / 30) : 1 / 60;last = now;const calm = still.matches;+ if (calm) {+ touring = false;+ clearTimeout(idle);+ }if (touring) {target += SPEED * dt;clock += dt;diff --git a/examples/turning-dial/turning-dial-verify-light.html b/examples/turning-dial/turning-dial-verify-light.htmlindex 3de194c..208d415 100644--- a/examples/turning-dial/turning-dial-verify-light.html+++ b/examples/turning-dial/turning-dial-verify-light.html@@ -4233,6 +4233,10 @@ function tick(now) {const dt = last ? Math.min((now - last) / 1000, 1 / 30) : 1 / 60;last = now;const calm = still.matches;+ if (calm) {+ touring = false;+ clearTimeout(idle);+ }if (touring) {target += SPEED * dt;clock += dt;diff --git a/examples/turning-dial/turning-dial.html b/examples/turning-dial/turning-dial.htmlindex 15b9603..36e4aca 100644--- a/examples/turning-dial/turning-dial.html+++ b/examples/turning-dial/turning-dial.html@@ -4232,6 +4232,10 @@ function tick(now) {const dt = last ? Math.min((now - last) / 1000, 1 / 30) : 1 / 60;last = now;const calm = still.matches;+ if (calm) {+ touring = false;+ clearTimeout(idle);+ }if (touring) {target += SPEED * dt;clock += dt;