I'm having issues with vertical scrolling in a BlackBerry app. It works great on touch screens, but when scrolling with a track, it jumps from top to bottom.
Has anyone had a similar problem? any idea what i could try?
Here is a snippet of my code. I have a static background image and the fields scroll over it:
vertical_main = new VerticalFieldManager(USE_ALL_WIDTH |NO_VERTICAL_SCROLL |USE_ALL_HEIGHT); vertical_AllTags=new VerticalFieldManager(USE_ALL_WIDTH | VERTICAL_SCROLL);
in advance for your help
EDIT: The suggestion to give every field focus was right. the only other part that needs to be done is when you override the onFocus method for the field, you need to call the super () function so that all the other normal parts of the onFocus method are still called:
protected void onFocus(int direction) { text_select=true; invalidate(); super.onFocus(direction); } protected void onUnfocus() { text_select=false; invalidate(); super.onUnfocus(); }
Thank you very much.
source share