View
 

iPhone: Prevent rubber-banding of the view

Page history last edited by Shazron Abdullah 10 mos ago

In your Javascript put:

 

document.documentElement.addEventListener('touchmove',

                                             function(e) {

                                                  e.preventDefault();

                                              }

                                          );

 

Comments (1)

profile picture

Luke Allen said

at 12:45 am on May 18, 2010

Thanks for the code snippet. However it not only prevents rubber banding but prevents any type of scrolling at all... Is there a way to fix this?

You don't have permission to comment on this page.