Hi all,
In the application we're developing, we wanted to remove tensile scrolling. As per some examples I managed to find online, we added next few constants to our theme with these values:
- alwaysTensileBool - false
- scrollVisibleBool - false
- tensileDragBool - false
Also, in the main class generated by CodenameOne, we added this code, so it would turn off scroll bar visibility and tensile drag just in case:
UIManager.getInstance().setLookAndFeel(new DefaultLookAndFeel(UIManager.getInstance()) {
@Override
public void bind(Component cmp) {
super.bind(cmp);
if (cmp instanceof Container) {
cmp.setScrollVisible(false);
cmp.setTensileDragEnabled(false);
}
}
});
Even after these changes, we still have some kind of a tensile scroll from time to time. Sometimes, when we reach the bottom of the screen, and try to scroll past it, the whole content acts like the tensile scroll is turned on, and goes back on its place after we click on the screen or do some other action.
Is there something we're missing, some constant or some code part we forgot to add?
There was a similar question, which will I link below, but we already added those constants that were suggested in the solution for it.
Link is:
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device