Software Archive
Read-only legacy content
17061 Discussions

application won't scroll in android build. IONIC

Paolo_B_1
Beginner
322 Views

Hi, I'm a beginner in intel xdk after I build my application in android phone, my app appears can't be scroll. What should I do? I really need your help. thanks

0 Kudos
2 Replies
Amrita_C_Intel
Employee
322 Views

Try this!

$.feat.nativeTouchScroll=true;
0 Kudos
PaulF_IntelCorp
Employee
322 Views

p.s. That trick that Amrita provided you assumes you are using App Framework. If that is not the case you might have some code in your app that is disabling the scrolling action, for example, if you have something similar to the following:

//*** Prevent Default Scroll ******
preventDefaultScroll = function(event) {
    // Prevent scrolling on this element
    event.preventDefault();
    window.scroll(0,0);
    return false;
};
window.document.addEventListener('touchmove', preventDefaultScroll, false);

You won't be able to scroll your screen.

0 Kudos
Reply