Author Topic: UICamera's ProcessTouch will called at the beginning?  (Read 2842 times)

noob22

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
UICamera's ProcessTouch will called at the beginning?
« on: October 09, 2016, 02:45:50 AM »
My button listens OnClick event.
It dont work at the beginning of appear or the first time.
Then it work well.
I tailed the code of NGUI.
UICamera's ProcessTouch function will be called at the beginning and "currentTouch.clickNotification = ClickNotification.None;" (upwards Notify OnLongPress) execute after ProcessPress function's "currentTouch.clickNotification = ClickNotification.BasedOnDelta;".
Because currentTouch.clickNotification == ClickNotification.None , so Notify OnClick dont execute.
Any suggestions?

PS:Android platform.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UICamera's ProcessTouch will called at the beginning?
« Reply #1 on: October 11, 2016, 09:58:51 AM »
Click notification state begins as "always". It only gets set to "none" if you initiate a drag operation. If you find yourself initiating a drag by accident, raise your drag threshold on the UICamera.