cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.88k stars 3.81k forks source link

Scrolling doesn't change after refresh() on iOS 8.1 Safari #807

Open thehappycoder opened 9 years ago

thehappycoder commented 9 years ago

The refresh takes place after some contents inside the scrollable area has been changed.

Works fine in Chrome mobile.

I was not able to isolate the problem. Tried the official demo with the same parameters. Any tips?

        iscroll = new IScroll(element[0], {
          scrollbars: true
          fadeScrollbars: true

          tap: true

          mouseWheel: false
          disableMouse: true
          disablePointer: true

          bounce: true
          HWCompositing: true
        })

        element.data('iscroll', iscroll)
thehappycoder commented 9 years ago

The wrapper height got too high. That's the cause. I will make sure it's not iscroll's fault and then close this.

thehappycoder commented 9 years ago

Isolated the problem. http://jsbin.com/juzadukoso/14

The instructions to reproduce in Safari on iOS 8.1 (or lower?):

  1. Notice the "Settings" at the bottom
  2. Click "Change me" select
  3. Notice the "Settings" are gone
  4. Click the "Refresh scrollable area"
  5. The scrollbar is gone :(

I know it's not a problem of iscroll but I will leave this open for you to acknowledge the problem.