Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
5.3.3
-
None
-
None
-
Android Lollipop on Nexus 7
Android Marshmallow on Nexus 5
Description
By "long" time I mean about 30ms! When using Cordova to run a html/javascript game the pause event fails to fire in the javascript event listener when the framerate drops below approx 35 fps. This is simply down to the time it takes to render a number of images to a canvas element. Above this it fires as expected.
This issue means I am unable to pause music and timers meaning the game keeps running and music keeps playing when the user navigates away.
I can reliably recreate this in a cut down example. I have posted the code as a question on stackoverflow here :
http://stackoverflow.com/questions/33463643/cordova-pause-event-on-android-fires-on-resume-when-under-load