baker icon indicating copy to clipboard operation
baker copied to clipboard

Three-cards affecting interactivity on pages

Open simantics opened this issue 13 years ago • 6 comments

Hi there,

I have six pages with Hype HTML5 animations (CSS and Javascript based). I have three-cards set as my rendering method.

I find that the animations do not start sometimes when using three-cards. There's a repeating pattern:

If cover (start page) is animated it works. The next two pages do not. The fourth page will work.

If I start on page 2, that page will work, the next two pages do not, and the fifth page will work. Etc.

When the rendering mode left blank all the animations work.

Does anyone know how I might be able to solve this? I prefer the three-cards effect to loading between each page.

Thanks.

simantics avatar May 03 '13 22:05 simantics

Have you tried to start the Hype animation when the window.focus event is fired? :)

folletto avatar May 03 '13 23:05 folletto

I'm not sure how I would go about doing this. Any tips?

simantics avatar May 03 '13 23:05 simantics

Just add an event listener on window.focus and start Hype when that event is fired. More info on the wiki. :)

folletto avatar May 03 '13 23:05 folletto

Hi, I'm incredibly new to JS but would it look something like this:

I've read the wiki you've linked to, and here is Hype's Events tutorial. Could you let me know if I'm on the right track? http://tumult.com/hype/documentation/javascript/

simantics avatar May 04 '13 11:05 simantics

Hi there, i run into the same issue with baker, three card rendering and a library for touch events called Zepto....

on normal mode it work without any incident but after add that render mode, the animations dont run or run very slow... also one script that works with the acelerometers stop responding son maybe its something more deep...

Also all the afected pages feature the focus event so no idea how we can fix this...

thejoepeach avatar May 09 '13 22:05 thejoepeach

I can just advise to go back to the standard screenshot mode, maybe tweaking the loading page. It's very difficult to work out these bugs because they are likely internal to the UIWebView, and that's full in Apple's control and a real black box for us.

folletto avatar May 10 '13 06:05 folletto