I know this is a little off-track, but I used Swiffy to convert Flash into an interactive HTML5 game and ran into the same scrolling, but didn't find any solutions that worked.
The problem was that the Swiffy scene was full screen, so once it was loaded, the document’s touchmove event never fired.
If I tried to add the same event to the Swiffy container, it was replaced immediately after loading the stage.
In the end, I solved this (rather randomly) by applying the touchmove event to each DIV as part of the stage. Since these divs were also constantly changing, I needed to check them.
That was my solution, which seems to work well. Hope this helps anyone trying to find the exact same solution as me.
var divInterval = setInterval(updateDivs,50); function updateDivs(){ $("#swiffycontainer > div").bind( 'touchmove', function(e) { e.preventDefault(); } );}
Tom Mar 25 '14 at 19:25 2014-03-25 19:25
source share