You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is not a big problem, since the last value is correct.
However, in case we need other actions to be performed on value changed (i.e. persisting value to storage, or calling other functions) this can create problems.
I checked the behaviour of the original Android widget and this issue does not occur.
As a temporary workaround, I tried to track the timestamps atwhich the value changes occur, discarding every second one in case the timestamp difference is less than a few ms. This - however - in not the optimal solution since it sets sometimes the wrong value (in case the item is dragged back and forth).
Regards.
The text was updated successfully, but these errors were encountered:
Hello, I have found this issue: when dragging to choose a value, the onValueChanged handler gets called several times.
For example, when dragging from value "1" to "2" , this occurs
this is not a big problem, since the last value is correct.
However, in case we need other actions to be performed on value changed (i.e. persisting value to storage, or calling other functions) this can create problems.
I checked the behaviour of the original Android widget and this issue does not occur.
As a temporary workaround, I tried to track the timestamps atwhich the value changes occur, discarding every second one in case the timestamp difference is less than a few ms. This - however - in not the optimal solution since it sets sometimes the wrong value (in case the item is dragged back and forth).
Regards.
The text was updated successfully, but these errors were encountered: