File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -1602,7 +1602,11 @@ setShowCountryButtons(false)
1602
1602
window . crazyMidgame = crazyMidgame ;
1603
1603
1604
1604
} , [ ] ) ;
1605
+
1606
+
1605
1607
function backBtnPressed ( queueNextGame = false , nextGameType ) {
1608
+ setStreetViewShown ( false )
1609
+ setOnboardingCompleted ( true )
1606
1610
1607
1611
if ( loading ) setLoading ( false ) ;
1608
1612
if ( multiplayerError ) setMultiplayerError ( false )
@@ -1618,13 +1622,11 @@ setShowCountryButtons(false)
1618
1622
if ( screen === "onboarding" ) {
1619
1623
setScreen ( "home" )
1620
1624
setOnboarding ( null )
1621
- setOnboardingCompleted ( true )
1622
1625
gameStorage . setItem ( "onboarding" , 'done' )
1623
1626
1624
1627
return ;
1625
1628
}
1626
1629
1627
- setStreetViewShown ( false )
1628
1630
1629
1631
if ( multiplayerState ?. inGame ) {
1630
1632
if ( ! multiplayerState ?. gameData ?. host || multiplayerState ?. gameData ?. state === "waiting" ) {
@@ -2050,8 +2052,8 @@ setShowCountryButtons(false)
2050
2052
</ button >
2051
2053
) }
2052
2054
2055
+ < div className = { `home__content ${ screen !== "home" ? "hidden" : "cshown" } ` } >
2053
2056
2054
- < div className = { `home__content ${ screen !== "home" ? "hidden" : "" } ` } >
2055
2057
2056
2058
2057
2059
{ onboardingCompleted === null ? (
Original file line number Diff line number Diff line change @@ -52,6 +52,16 @@ html {
52
52
animation : hide 0.5s ease-in-out forwards ;
53
53
pointer-events : none ;
54
54
}
55
+ // we have to do this for ios otherwise back btn makes a blank home page, not sure why
56
+ // not even all ios devices some randomly
57
+ .cshown {
58
+ left : 50% ;
59
+ opacity : 1 ;
60
+ animation : fadeIn 0.5s ease-in-out forwards ;
61
+ pointer-events : all ;
62
+ display : flex !important ;
63
+
64
+ }
55
65
56
66
.home__btns {
57
67
display : flex ;
You can’t perform that action at this time.
0 commit comments