HI, All
I'm scrolling the ScrollView with a picture by the keyboard D-pad (only D-pad is available on the target device).
Using activity keys is OK:
But i need to scroll by the exact step, but this step is OK only for the first button press - at any next key pressing - the scrolling is done multiply, with some big step, and
fired many times. So - too long scrolling - but why ?
I have read about some problem with scrolling, and using:
but it's not the reason of the big step of the key press.
If to scroll NOT by key pressing, but some tapping - all works fine, scroll to the needed step.
Any help ?
I'm scrolling the ScrollView with a picture by the keyboard D-pad (only D-pad is available on the target device).
Using activity keys is OK:
B4X:
Sub Activity_KeyUp (KeyCode As Int) As Boolean
But i need to scroll by the exact step, but this step is OK only for the first button press - at any next key pressing - the scrolling is done multiply, with some big step, and
B4X:
Sub sw_ScrollChanged(Position As Int)
I have read about some problem with scrolling, and using:
B4X:
sw.ScrollToNow (sw.ScrollPosition + d)
DoEvents
sw.ScrollToNow (sw.ScrollPosition + d)
but it's not the reason of the big step of the key press.
If to scroll NOT by key pressing, but some tapping - all works fine, scroll to the needed step.
Any help ?