views:

74

answers:

0

I'm working on a javascript game (written in GWT). The game works fine on any desktop browser I've tried, but when I run it on the iPhone/iPod Touch, the screen stops showing widgets moving at random times during the game. Once it stops showing movements, I can see that the game is still running, because certain actions that cause objects to disappear still occur and the widgets disappear, but the remaining widgets that are being moved using setWidgetPosition() stop moving. I can fix this by turning the iPhone landscape and then back to portrait, but haven't found a way to fix it otherwise.

The bug seems to occur when I add new widgets onto the screen, but it's not consistent---the same code to add new widgets can run many times before it causes the redraw freeze. No javascript errors are coming in on the console.

I'm really at a loss to figure out what's going on or how to debug it. Any suggestions?

Thanks, Bruce