jmpressjs / jmpress.js

A jQuery plugin to build a website on the infinite canvas
http://jmpressjs.github.com/jmpress.js
1.5k stars 237 forks source link

demos not working in latest chrome ‪nor in IE9 & IE10 #62

Closed eliort closed 12 years ago

eliort commented 12 years ago

Hi,

the demos are not working for me in chrome ‪19.0.1084.56 m‬ nor in IE9 or IE10... any suggestions?...

I was able to see some demos on firefox and they're amazing, I really hope there is a solution.

thanks :-)

Elior

sokra commented 12 years ago

Weird. I use the same version and it works. IE9 works too (but without transition). Maybe problems with your graphic card or addons?

eliort commented 12 years ago

pehraps... I don't know.. For example, here are links that do not work for me on chrome nor on IE10: http://shama.github.com/jmpress.js/examples/simple/ http://shama.github.com/jmpress.js/examples/impress/ http://shama.github.com/jmpress.js/examples/zoomable/ Do they work for you on the latest version of chrome and on IE10? Thanks! Elior

sokra commented 12 years ago

IE10 means you are working with Win8?

eliort commented 12 years ago

Yes. I also tried these very same links on a win7 computer, they only work partially without any transitions (with the same version of chrome and IE9)

eliort commented 12 years ago

Eventually the problem had to to with a popup blocker which blocks some of the jmpress javascript code. In the jmpress.js file I added a "try ... catch" to the scrollFix() function and now it works well. Here it is: function scrollFix() { function fix() { if ($(container)[0].tagName === "BODY") { try { window.scrollTo(0, 0); } catch (e) { }; } $(container).scrollTop(0); $(container).scrollLeft(0); function check() { if ($(container).scrollTop() !== 0 || $(container).scrollLeft() !== 0) { fix(); } } setTimeout(check, 1); setTimeout(check, 10); setTimeout(check, 100); setTimeout(check, 200); setTimeout(check, 400); } fix(); }

eliort commented 12 years ago

now everything works well.