Prevent Scroll with ionic, don't work in android 2.3



I use Ionic with Cordova and i have a probleme with a PreventScroll event.
Can you help me ? i block on that :s

error :
E/Web Console(5024): Uncaught TypeError: Cannot read property ‘preventScroll’ of undefined at file:///android_asset/www/app/libs/ionic/release/js/ionic.bundle.js:3549


up please :frowning:
i don’t see how to do


Please be more specific.

What is going wrong? What do you expect to happen? Which code are you using?
Which version of Ionic are you using? Which platform are you deploying to?


i use ionic beta 1.0

in fact, the scroll in the ion-item and ion-list doesn’t work, i don’t know why.

in a adb console, i see “E/Web Console(11052): Uncaught TypeError: Cannot read property ‘preventScroll’ of undefined at file:///android_asset/www/app/libs/ionic/release/js/ionic.bundle.js:3549”

it’s a probleme with ionic ? or android ? or my code ?
The scrool work in android 4.4 but not in 2.3 :s


I am having the same issue. Please could you suggest me if you found any solution for this.


I am having the same issue. I just start playing with ionic framework and I create sample app using ionic start myApp tabs, after that I run this app on my phone with android 2.3, unfortunately after clicking on friends list app sometimes go to friends details or do nothing. When clicking on friends list, app take no action, I get this error in adb console

E/Web Console(16154): Uncaught TypeError: Cannot read property ‘preventScroll’ of undefined at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:3549


Unfortunately, our Overview sort of says it all:

Android 4+ (with some support for 2.3).

Any chance you can see if that works in 4+?


I upgrade my Sony Ericsson Xperia to android 4.0.4 and I don’t see this error any more in adb console, but the friends list in sample app still have the same strange behaviour, that sometimes after touch item in list I go to details view and sometimes nothing happens.


The devs are doing a big push right now on Android touch issues. I think it’s best to see the results of that effort.