Author Topic: UIScrollView/UIScrollBar visibility bug  (Read 2268 times)

mcarriere

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
UIScrollView/UIScrollBar visibility bug
« on: December 17, 2013, 08:21:38 AM »
Small bug: If you set the show condition to WhenDragging on a UIScrollView, the UIScrollBar is visible when you scroll with the mousewheel, when you drag the contents, but it does not show when you click on the actual scrollbar itself to scrub around in that manner.

While I'm at it -- a small request -- it seems that this NGUI implementation fades the scrollbar out immediately after any drag event completes, whereas the Apple implementation delays a second or so before it fades out. Is there any way you could lengthen that by default, or simply show a float to control the delay before the fade out?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView/UIScrollBar visibility bug
« Reply #1 on: December 17, 2013, 09:57:20 AM »
NGUI doesn't try to mimic apple here, but it does provide you with the tools to do just that, if you desire. The code for it is inside UIScrollView, line 766. You could insert a delay in there if you wanted.

mcarriere

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: UIScrollView/UIScrollBar visibility bug
« Reply #2 on: December 17, 2013, 10:01:41 AM »
Thanks for the pointer -- what about the dragging issue, do you not consider that a bug?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollView/UIScrollBar visibility bug
« Reply #3 on: December 17, 2013, 10:08:16 AM »
No because the "when dragging" option is ideally just an indicator. At that point the scroll bar shouldn't even have a collider on it (it shouldn't be interactable). If you want it to be interactable, you should go with one of the other options, such as "when needed".