← Back to team overview

touch-packages team mailing list archive

[Bug 1388094] Re: Slider component can have problems when binding value

 

This is an example of how we work around it in system-settings

http://bazaar.launchpad.net/~system-settings-touch/ubuntu-system-
settings/trunk/view/head:/plugins/brightness/PageComponent.qml#L64

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1388094

Title:
  Slider component can have problems when binding value

Status in ubuntu-ui-toolkit package in Ubuntu:
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1388094/+subscriptions


References