Slider component can have problems when binding value

Bug #1388094 reported by Ken VanDine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
High
Zsombor Egri

Bug Description

In ubuntu-system-settings and the indicators, we deal with values that come from system services. When binding to the value in the Slider component, this can cause unpredictable behavior because we get property notifications back that change the value while the slider is being moved. This has been worked around in ubuntu-settings-component by creating a SliderMenu which used in the indicators and system-settings for things using the MenuModel provided by the indicator services. The SliderMenu is based on the Slider for the SDK, but adds some logic for handling this value binding loop. It would be best to improve the Slider to handle this sort of problem and reduce the amount of custom components.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

over to zsombor for review

Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Zsombor Egri (zsombi) wrote :

The live Slider value change is expected to get the value updated on each move. I do not really see what could we improve in the component there. Could you provide a small sample code that reproduces the binding loop you worked around?

Zoltan Balogh (bzoltan)
affects: ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → High
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Revision history for this message
Ken VanDine (ken-vandine) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.