ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: ion-content: Scroll not working for android 4.4.2.

Open fasilpv opened this issue 10 years ago • 22 comments

Type: bug

Ionic Version: 1.x

Platform: android 4.4 webview

Hi there,

This is my structure

ion-content -> ion-list -> ion-item -> div -> div.

I am using ng-repeat as well.

I can see the ionic scroll working on Android 5.1.2 version, but the same is not working for Android version 4.4.2. Am I missing something? Is this a known issue?

This is ionic info

Cordova CLI: 5.4.1 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.0 Ionic Version: 1.2.4 Ionic CLI Version: 1.7.13 Ionic App Lib Version: 0.6.5 ios-deploy version: 1.8.4 ios-sim version: 5.0.6 OS: Mac OS X El Capitan Node Version: v4.2.4 Xcode version: Xcode 7.1 Build version 7B91b

Thanks

fasilpv avatar Jan 25 '16 10:01 fasilpv

+1

HanxiongShi avatar Jan 25 '16 19:01 HanxiongShi

+1

CarlosAmaral avatar Jan 27 '16 10:01 CarlosAmaral

I have a scroll issue, and I try to downgrade ionic to 1.2.3. And I found the bug was fixed.

phodal avatar Jan 28 '16 15:01 phodal

overflow-scroll:false in the ion-content worked for me. Try that.

CarlosAmaral avatar Feb 01 '16 00:02 CarlosAmaral

That did not work for me. But, it worked when I removed the style 'display: table !important;' from .scroll-content. Thank you.

fasilpv avatar Feb 01 '16 04:02 fasilpv

+1. Works fine on 5.1.1 and iOs 9

Edit: Fixed, updated to 1.2.4.

Moes3s avatar Feb 04 '16 20:02 Moes3s

Setting overflow-scroll="false" worked for me too. Thanks @CarlosAmaral !

varunis avatar Feb 23 '16 20:02 varunis

You're welcome @varunis

CarlosAmaral avatar Feb 29 '16 10:02 CarlosAmaral

@varunis thanks 谢谢你解决了我的问题

cnyunguo avatar Feb 29 '16 13:02 cnyunguo

@All, overflow-scroll="false" in ion-content worked for me for android 4.4

ghost avatar Mar 06 '16 08:03 ghost

overflow-scroll="false" in ion-content worked for me too thanks @CarlosAmaral

kevinokeyo avatar Mar 10 '16 11:03 kevinokeyo

+1 overflow-scroll="false" worked for me but this has bug in browser too

adrianoresende avatar Mar 12 '16 17:03 adrianoresende

Hi @fasilpv,

Can you provide a codepen or plunkr? I cannot recreate with this:

<ion-content overflow-scroll="true">
      <!--<ion-refresher on-refresh="doRefresh()">

      </ion-refresher>-->
      <ion-list>
        <ion-item ng-repeat="item in items">
          <div>
              <div>{{item}}</div>
          </div>
        </ion-item>
      </ion-list>
    </ion-content>

danbucholtz avatar Apr 22 '16 20:04 danbucholtz

Hello! As it has been a little while since there was any activity on this issue i will be closing for now, but, if you are able to get that codepen/plunkr together feel free to comment!

jgw96 avatar Apr 27 '16 14:04 jgw96

The issue is still present with Android 4.3 (api 18). You can reproduce it also on AVD. The workaround (overflow-scroll="false" on ion-content) solve the problem.

These are environment data: Cordova CLI: 6.1.1 Gulp version: CLI version 3.8.11 Ionic Version: 1.3.0 Ionic CLI Version: 1.7.14 Ionic App Lib Version: 0.7.0 AVD with Android 4.3 (api 18)

Thanks

giogit avatar May 06 '16 19:05 giogit

Hello @giogit ! Would you mind trying Crosswalk with your app? Although we support Android 4.3 we do recommend using Crosswalk if you plan on your app supporting it.

jgw96 avatar May 06 '16 19:05 jgw96

I've just updated my original post, because I made a mistake: if I set overflow-scroll="false" on the ion-content element, the scrolling works on Android 4.3. I will do some regression test on other platforms. Thank you for prompt reply!

giogit avatar May 06 '16 19:05 giogit

@giogit No problem! If you run into any issues on other platforms feel free to let me know!

jgw96 avatar May 06 '16 19:05 jgw96

Happend to me right now in Android 4.4 - api-19 in the emulator, and Galaxy s4 with Android 4.2 and Galaxy S3 mini with Android 4.2: overflow-scroll="false" does not work for me

alacret avatar Jul 19 '16 14:07 alacret

If I set the overflow-scroll="false" then I'm unable to tap/click a button on android 4.2, emulators and real devices.

freddiescott avatar Sep 19 '16 11:09 freddiescott