← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1627078] [NEW] ScrollBars and ScrollView - add 'isDragged' or 'isScrolling' property

 

Public bug reported:

I'm trying to implement a "page indicator" to be shown when the user
scrolls a Flickable using a UITK ScrollBar. The idea is to mimic a
feature available in Adobe Reader for Android.

i.e. http://imgur.com/a/OzjYG

In order to do this, I have to access the "draggingThumb" property of
the style instance of a UITK ScrollBar, which is meant to be private.

Item {
    [...]
    visible: scrollView.verticalScrollbar.__styleInstance.draggingThumb
}

What it could be useful is to expose this property directly in the ScrollBar.
Using the Flickable properties for this purpose would be a bit complicated, since it wouldn't be desiderable to see such overlay during an "ordinary" touch/flick event.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  ScrollBars and ScrollView - add 'isDragged' or 'isScrolling' property

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

Bug description:
  I'm trying to implement a "page indicator" to be shown when the user
  scrolls a Flickable using a UITK ScrollBar. The idea is to mimic a
  feature available in Adobe Reader for Android.

  i.e. http://imgur.com/a/OzjYG

  In order to do this, I have to access the "draggingThumb" property of
  the style instance of a UITK ScrollBar, which is meant to be private.

  Item {
      [...]
      visible: scrollView.verticalScrollbar.__styleInstance.draggingThumb
  }

  What it could be useful is to expose this property directly in the ScrollBar.
  Using the Flickable properties for this purpose would be a bit complicated, since it wouldn't be desiderable to see such overlay during an "ordinary" touch/flick event.

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