I’m trying to get an HTML5 page to scroll vertically on a mobile device like iPad. If possible, by swiping on the javascript embedded game itself (since it is in the middle of the page). The code below is for this game: http://roomrecess.com/mobile/100Letters/play.html
I hate to paste to entire page so I’ll paste the div the game is in:
Are you saying that A.) you want the game to intercept events, and to not allow the page to scroll, or B.) for the game to not prevent the default, and allow the browser page to scroll?
Do you want the game to fill the entire screen, or only part of it?
I want the page itself to scroll when swiped up so that users can get the game into view when the iPad is in landscape (horizontal mode). The embedded game should scroll with the screen (does that make sense)?
Is that possible to do (and still have the game received normal events, like button pushing and such)?
Thanks, a lot for the help. Yeah, removing the event.preventdefault does allow me to scroll as long as the user swipes in the space outside the game window. This helps. I’ll explore the template option to possibly have the ability to swipe/scroll the entire page when swiping on the game.