- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I'm looking for a method to prevent scroll on mainpage of my app.
I tried with:
mainpage.addEventListener('touchmove', function(e){
e.preventDefault() // prevent scrolling when inside DIV
}, false);
without success. Can anyone help me?
Thanks in advance.
Marco
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you are trying to prevent scrolling in the entire app. Include this in your config.xml
<preference name="DisallowOverscroll" value="true"/
Or if you want to prevent scrolling in just a section then try this
<div id="#pagetitle" title="Yourtitle" class="panel" style="overflow:hidden;">
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved! Thank you very much Amrita!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I solved only for iPhone App, for Android the behavoiur is different. Building Android App with style="overflow:hidden;" I have no scroll for every tab.
Anyway I have an app like Tab View App in Layout Template of XDK. I need to avoid the scrolling only for some tab not for all.
Thanks for help in advance
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am glad it worked for you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, unfortunately not! It worked partially!
The problem persist, I don't know how to, with a TabView app, block the scroll only for some tab, not for all.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page