2D Toolkit Forum

2D Toolkit => Support => Topic started by: bahaahamza on July 26, 2013, 04:34:33 pm

Title: tk2dUIScrollbar - buttonUpDownScrollDistance has no effect
Post by: bahaahamza 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.
Title: Re: tk2dUIScrollbar - buttonUpDownScrollDistance has no effect
Post by: unikronsoftware 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;