I have a custom extension of VerticalFieldManager that automatically scrolls itself to display data to the user. Both above and below that VFM, there are other components that the user can interact with. On OS5, this works perfectly and exactly how I expect. On OS6, with the built-in “smooth scrolling” feature, when the user tries to scroll from the fields above the VFM to the fields below, the VFM is scrolled by the user’s input before transferring focus to the fields below the VFM.
Is there any way to override this behavior and tell the OS to leave my VFM alone? In OS5, this was a simple as making the VFM non-focusable.
I have tried fiddling with the vertical adjustment and vertical quantization on the VFM with no luck. The VFM never actually receives focus, the OS just scrolls it. I assume the OS thinks that it is being helpful, but it is not! 🙂
I figured out a solution by overriding the
navigationMovementfunction in the parent Manager, something like this:You will see in the code above that I had to also override the behavior when scrolling up from the very top and scrolling down from the very bottom because the OS was again taking over and “helping” me scroll the non-focusable VFM.