Hello,
So I'm trying to code something like dragging an item out of a scrollable area. What I do is if I touch something in the scrollable area for more than 0.5 seconds, I disable the scrollable area and create a new "fake" object to drag around the screen. After releasing that object (touch up or mouse button up), I re-enable the scrollable area.
I think I've found a bug.
When a touch is active (i.e. i'm currently scrolling it) then I disable the tk2dScrollableArea script. The variable isSwipeScrollingInProgress
is still true. However on the OnDisable()
method, you unsubscribe to OnInputUpdate via tk2dUIManager.Instance.OnInputUpdate -= BackgroundOverUpdate;
So next time I enable it it won't register to the to the line tk2dUIManager.Instance.OnInputUpdate += BackgroundOverUpdate;
in BackgroundButtonDown()
So when I enabled it, it won't scroll anymore.
Is this a bug or is this intended behaviour? Please advise, thanks!