Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el3ab-Player
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el3ab-Player
Commits
61e7686a
Commit
61e7686a
authored
Oct 27, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(native): back from another tab goes home before closing the app
Co-Authored-By:
Claude Opus 5.5
<
noreply@anthropic.com
>
parent
78dc09f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
native-bridge.js
public/js/core/native-bridge.js
+5
-3
No files found.
public/js/core/native-bridge.js
View file @
61e7686a
...
@@ -24,12 +24,14 @@ export function init() {
...
@@ -24,12 +24,14 @@ export function init() {
onNavTap
:
handleNavTap
,
onNavTap
:
handleNavTap
,
// The shell's QR scanner answers requestScan() here: { text } or { error }.
// The shell's QR scanner answers requestScan() here: { text } or { error }.
onScanResult
:
handleScanResult
,
onScanResult
:
handleScanResult
,
// Android's back button: one scene back while there is one
; false lets
// Android's back button: one scene back while there is one
, then home
//
the shell close the app instead
.
//
(the Play tab); false only there, and the shell closes the app
.
onBack
:
()
=>
{
onBack
:
()
=>
{
const
before
=
scene
.
currentSceneId
();
const
before
=
scene
.
currentSceneId
();
scene
.
pop
();
scene
.
pop
();
return
scene
.
currentSceneId
()
!==
before
;
if
(
scene
.
currentSceneId
()
!==
before
)
return
true
;
if
(
scene
.
getCurrentWorld
()
!==
'play'
)
{
scene
.
switchWorld
(
'play'
);
return
true
;
}
return
false
;
},
},
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment