nordic-skating / commit
docs: the Tilt button and the rotation lock
PLAN.md | 9 +++++++++ README.md | 13 +++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/PLAN.md b/PLAN.md index 3bef7aa..93d4845 100644 --- a/PLAN.md +++ b/PLAN.md @@ -174,6 +174,15 @@ Asked for by Pavel on 2026-10-10. A setting, off by default, shown only on phone tablets: lean the phone like a wheel to steer, level to let the skater skate itself. Dragging still works with it on. +Tried by Pavel on a phone, 2026-10-10: it works. Turning it on in Settings was +cumbersome, so there is now a Tilt button at the bottom left of the screen as well, +hidden like the setting where there is nothing to tilt. + +Also asked for: the screen should not turn with the phone while tilt is on. Built with +the browser's own rotation lock, which Android gives to an installed app or a page in +full screen (so a tab goes full screen while tilt is on) and an iPhone does not give to +a web page at all. Not tried on a phone. + Checked in a desktop browser pretending to be a phone, with made-up tilt: the setting shows, is remembered, and leaning turns the skater. Not checked: a real phone, where the things to judge are whether 4° of rest and 28° for full steering are right, whether diff --git a/README.md b/README.md index 61a734c..a9b8807 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,8 @@ one side of every fork, for as long as you leave it. | To | Touch or mouse | Keyboard | |---|---|---| -| Steer left or right | Drag sideways from wherever you touch; or tilt the phone, if that is turned on in Settings | ← → or A D | +| Steer left or right | Drag sideways from wherever you touch; or tilt the phone, with Tilt on | ← → or A D | +| Tilt to steer, on or off | The Tilt button at the bottom left (phones and tablets only) | | | Turn right round, or circle an islet | Hold the steer over | the same | | Choose a way at a fork | A touch towards it on the way up to the fork | the same | | Sound on or off | The button at the top right | M | @@ -86,12 +87,20 @@ Each takes effect as it is touched, behind the box, and is remembered for next t ### Tilt to steer -On a phone or tablet, Settings has **Tilt to steer**. Turned on, the phone is leaned +On a phone or tablet there is a **Tilt** button at the bottom left, and the same choice +in Settings; anywhere else, neither is shown. Turned on, the phone is leaned left or right like a wheel, about the line the skater looks along: more lean, tighter turn, full steering at 28°. Within 4° of level counts as level, since nobody holds a phone dead level, and held level the skater skates itself. It works held upright or on its side, and dragging still works alongside it. +While tilt is on the screen is stopped from turning with the phone, since leaning a +phone over is exactly what makes its screen flip. A browser does that only for a page +that fills the screen: the installed app already does, and in a browser tab the page +goes full screen while tilt is on and comes out of it when tilt is turned off. An +iPhone will do neither for a web page, so there the phone's own rotation lock, in +Control Centre, is the way. + An iPhone asks leave for this, each visit, at the first touch. If it has been refused it is not asked again: Settings, Safari, Motion & Orientation Access turns it back on. Browsers give a page the phone's tilt only over HTTPS, which the live site is and