Data Binding: Bidirectional Scroll Percentage Issue
I am trying to figure out the best way to achieve a flexible scrolling setup - not sure if i just haven’t figured out a solution yet, or if i am trying to do something not possible:
I have a part of my layout that i want to have horizontal scrolling on - everything is set up correctly and works, however i want to combine to things:
1. There are three buttons at the bottom, each will set the scrolling to a certain value, and, using an interpolator, animate the value change smoothly => working
2. I still want the user to be able to freely scroll/move the scroll layout, but then still be able to click the buttons and have the layout scroll accordingly => not working
The issue: when i scroll manually with the mouse and then click on one of the buttons, the scroll value will jump - it seems that it is not animating from the current scroll position, but rather from the previous “fixed” position.
I was trying to set this up with bidirectional binding, but that just made my layout not react properly to manual (mouse) scrolling.
I have attached the .rev file - what am i missing here?
Any help is greatly appreciated :)