Turn off bounce in webworks
I am working on a webworks app and in one of our screens we have a list. I am not sure if it is a bug or because we are using a dev alpha b device for testing but when someone scrolls on the list sometimes it actually moves the whole web container of the webworks. I think iOS has a similar feature which can be disabled, and we want to disable it in webworks if possible until the bug is fixed. Anyone out there dealt with that feature, a bounce or over scrolling of the web container for web works? I couldn't find anything in the sdk but I am hoping there is some setting I can add to the config.xml to disable this feature.
- CrackBerry Genius
02-07-13, 12:46 PM #4
- 1,761 Posts
- Just PM
sorry for the late reply
the tag ; (Add this to the index.htm if you're using BBui.js or put this in every htm file if you're building an other kind of Webworks app)
<meta name="viewport" content="initial-scale=1.0,width=device-width,user-scalable=no,target-densitydpi=device-dpi" />
- 02-09-13, 01:54 PM #5
I don't think that meta data will do the trick, at least not in bbUI. You need to use data-bb-scroll-effect="off"
Also, there seems to be a bug if you use it with absolute or fixed positioning:
Hey all a slight update from my previous post. It seems that the data-bb-scroll-effect property fixed the issue for most occasions, but still some occasions (changing focus and regenerating a list for example) that cause touch events to move the whole screen. Not sure why that is affecting anything, but will keep researching and post if I find any additional info. Thanks again for the fix takes care of most usage.
- 02-13-13, 02:44 PM #8
What if you try encasing everything in a container with an absolute size/position?
Mikeeo007 Thanks, that seems to illiminate even more of the situations. For some reason though on out dev alpha B device it seems to think the resolution should be 570px X 342px (that is what it computed when given 100% X 100%, and other resolutions caused the app to not look right). One situation is left that still causes a scroll over bounce when pulling down too far, but all rest seem to be gone. Thanks again everyone, going to keep investigating and will update if I find anything else.
- By LarryMcJ in forum BBOS Phone AccessoriesReplies: 8Last Post: 12-15-09, 09:03 AM
- By pacmaann2 in forum BlackBerry Pearl 81xxReplies: 1Last Post: 12-03-09, 04:40 PM
- By pacmaann2 in forum General BlackBerry DiscussionReplies: 0Last Post: 12-03-09, 04:00 PM
- By goneal in forum BlackBerry Curve 83xxReplies: 5Last Post: 09-06-09, 09:33 AM
- By Radioman55 in forum BlackBerry StormReplies: 3Last Post: 06-27-09, 04:20 PM