You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm integrating Excalibur.js into a Capacitor mobile app, and I've run into a tricky issue with pointer input.
When the app first launches, everything works great — I can capture input via engine.input.pointers.primary.on('down', ...) without any problem.
But... once the app goes into the background and then comes back to the foreground, pointer input completely stops working. No down, up, or move events are triggered anymore.
Here's what I’ve tried:
Listening to Capacitor's appStateChange to detect when the app resumes
Manually re-registering pointer event handlers after resume
Unfortunately, none of these have helped.
Thanks in advance for any help or guidance — and thanks for the great work on Excalibur! 😄
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I'm integrating Excalibur.js into a Capacitor mobile app, and I've run into a tricky issue with pointer input.
When the app first launches, everything works great — I can capture input via engine.input.pointers.primary.on('down', ...) without any problem.
But... once the app goes into the background and then comes back to the foreground, pointer input completely stops working. No down, up, or move events are triggered anymore.
Here's what I’ve tried:
Unfortunately, none of these have helped.
Thanks in advance for any help or guidance — and thanks for the great work on Excalibur! 😄
Beta Was this translation helpful? Give feedback.
All reactions