I have noticed similar problem, where replacing one canvas with another shows sometimes a blank screen in between. After some experimenting, I have found that this behavior is related to the previous use of the new CSS transform & animation features added in iPhone OS 2. If you have used in the _same window_ these CSS features, the combined grahics updates become flickery. You can even load another page in that window (e.g. by changing window.location to diferent URL), the corruption of the graphics engine performance remains. But if you open a new window, the problem is cleared. You can easily reproduce this strange problem by running a simple app that swaps couple large canvases on every tap. If you run any CSS transform/ animations app, such as the Apple's card flip sample, then use 'browser back' and load into the same window the simple canvas swap app, you will notice the flicker. If you manually open the second window and reload the canvas swap app there, there is no flicker.
I dumped entire DOM data for window, document, body... and I could see no difference in the dumps (all values were identical) for the two cases that perfrom differently, hence this 'contamination' must be in the underlying graphics engine that got some internal setting/mode or variable stuck for the CSS transforms/animations processing. In my program (remote desktop control app at http://f2p.com ) I had added some cute animation to activate and remove button toolbars via 3d rotations and morphing at 90 degrees, but had to give up on them (they were added for pure aesthetics, anyway, no useful function) because of this problem. I also retested it on the latest OS 2.1 and unfortunately, the problem is still there. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
