mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 17:52:21 +00:00
Let a quick second click on Next move on, and Tab leave the welcome for the page
The second click of a double click on NEXT was dropped, so the button looked dead; it now moves to the next step, and only the launch itself still takes a single click. Tab from the search bar or another control jumped back into the card; the card no longer claims focus from the page, and still takes it when focus has nowhere else to be. Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
4d42c56bdf
commit
866eadbe5e
6 files changed
+77
-6
No files matched your search
@@ -41,13 +41,16 @@ let pressedOn = null;
|
||||
function onPrimaryDown() {
|
||||
pressedOn = settling.value ? null : step.value;
|
||||
}
|
||||
// A quick second click still moves to the next step, so the button never
|
||||
// looks dead; only the launch itself takes a single click, so a double click
|
||||
// that began on NEXT never confirms the start it lands on.
|
||||
function onPrimary(event) {
|
||||
if (settling.value || event.detail > 1) return;
|
||||
if (settling.value) return;
|
||||
const pressed = pressedOn;
|
||||
pressedOn = null;
|
||||
if (event.detail === 1 && pressed !== step.value) return;
|
||||
if (step.value < STEPS) go(step.value + 1, event);
|
||||
else controls.value?.choose(start.value);
|
||||
if (event.detail >= 1 && pressed !== step.value) return;
|
||||
if (step.value < STEPS) go(step.value + 1);
|
||||
else if (event.detail <= 1) controls.value?.choose(start.value);
|
||||
}
|
||||
// GEV Stories opens in place: the card closes as Skip would, then Explore
|
||||
// takes the globe. The Stories announcement stays hidden while Stories loads,
|
||||
|
||||
Reference in new issue
Block a user