Hello Guest

Author Topic: tk2dUIScrollbar - buttonUpDownScrollDistance has no effect  (Read 3425 times)

bahaahamza

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
tk2dUIScrollbar - buttonUpDownScrollDistance has no effect
« on: July 26, 2013, 04:34:33 pm »
For tk2dUIScrollbar, i wanted to decrease the scroll distance when pressing up/down buttons.
So i tried to change the value of buttonUpDownScrollDistance but nothing occurred.

In the script buttonUpDownScrollDistance is not used at all, maybe it can be used in ScrollDirection().
Or is there another way to control the scroll distance when pressing up or down buttons.

Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dUIScrollbar - buttonUpDownScrollDistance has no effect
« Reply #1 on: July 27, 2013, 10:55:44 pm »
Indeed. Looks like it was missed out from the ScrollDirection function.
Code: [Select]
            Value = Value - CalcScrollPercentOffsetButtonScrollDistance() * dir * buttonUpDownScrollDistance;