Author Topic: Scrollbar not respecting CancelIfDragFits  (Read 1737 times)

Ferazel

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 150
    • View Profile
Scrollbar not respecting CancelIfDragFits
« on: December 15, 2014, 06:33:46 PM »
Hi Aren,

I was looking into a problem today where if the scrollbars are set to always visible, and the content of a scrollview doesn't fill the content area there are some problems.

One is that the scrollbar will show the extra space on the content area.
Two is that the scrollbar will not respect the cancelIfDragFits property and will allow you to scroll the scrollview.

Could you update the code so that always visible scrollbars will respect this property and not allow scrolling internally?



If you make a code change can you post it here until the next version is available?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrollbar not respecting CancelIfDragFits
« Reply #1 on: December 17, 2014, 02:49:35 PM »
Problem is that if the scroll bar is 100% then you can't tell if its value is 0 or 1. So the slight padding there is actually useful. I suggest keeping the scroll bar hidden if it's not needed.