Hello Guest

Author Topic: Bug fix for tk2dUIScrollableArea  (Read 5265 times)

zblack

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
Bug fix for tk2dUIScrollableArea
« on: November 24, 2017, 10:50:29 pm »
In the function BackgroundButtonRelease(), the following line should be added right after tk2dUIManager.Instance.OnInputUpdate -= BackgroundOverUpdate;

swipeCurrVelocity = 0;

Without it, child uiItems will get un-pressed by tk2dUIManager's OverrideClearAllChildrenPresses() if you try to click after scrolling.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Bug fix for tk2dUIScrollableArea
« Reply #1 on: December 05, 2017, 06:13:35 pm »
Cheers for that, I shall test and merge in the next update.

Update: It seems to work well, included in tk2d 2.5.8.8. Thanks.
« Last Edit: December 05, 2017, 11:25:59 pm by unikronsoftware »