Author Topic: UI objects receiving drag events when they aren't being dragged?  (Read 1247 times)

ealtorfer

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Hi there,

I'm trying to work through a weird problem I'm seeing after upgrading to NGUI 3.0.x - I am programmatically showing/hiding/activating a text field on my UI. If I do so after interacting with another UI object, that UI object will receive a drag event. It's happening in UICamera:line 1368...

I'm assuming that this is occurring because I'm not activating the text field properly. Could someone help me understand where I might be going wrong?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI objects receiving drag events when they aren't being dragged?
« Reply #1 on: January 17, 2014, 12:27:15 AM »
Check to see what sets "dragStarted" to 'true'. There are only two places where this happens, and both are right above the line you mentioned. Might get you closer to the cause.