Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS browser crashing when using -webkit-overflow-scrolling: touch;

Tags:

css

ios

ipad

When making a scrollable div, for iOS devices, momentum scroll doesn't work - so you must use the 'beta' -webkit-overflow-scrolling: touch; property.

However, this seems to crash the browser for me - not immediately, but seemingly randomly. Removing all of the -webkit-overflow-scrolling: touch; properties stop the browser from crashing.

I've tried using iScroll, touchSwipe, and a few other plugins that I can't remember the name of, but have either been too cumbersome to implement (I have a very short timeframe for development) or haven't worked as desired.

Does anyone experience the same problem, and if they have, have you found a solution?

like image 322
agjmills Avatar asked Oct 06 '22 11:10

agjmills


2 Answers

I happened to me on bigger list with about over 100

  • elements. When I removed it it works, but without the momentum scrolling ofcourse.

    I tested on iOS5 and latest iOS6, on both an iPod Touch 4.1 and iPad 2, it seems that on the Touch I get the Safari crash more often, but on the iPad it also happens.

    It seems like an Apple bug they didn't properly solve.

  • like image 178
    Philip Sultanescu Avatar answered Oct 09 '22 01:10

    Philip Sultanescu


    I noticed this happening when I had it applied to multiple elements on the page... I dropped it down to being applied only on the "active" div, and it doesn't crash anymore. Lame.

    like image 27
    Alex K Avatar answered Oct 09 '22 01:10

    Alex K