Author Topic: Android, mouse and touch events on UIPopupList  (Read 2730 times)

vvvua

  • Guest
Android, mouse and touch events on UIPopupList
« on: July 16, 2013, 02:13:12 PM »
Popup list works only with swipe when mouse and touch controls on camera are enabled.
It seems that events are received in pairs. So one event opens the list and another closes one in the one same frame. Mouse is enabled with this script attached to the camera:
  1. gameObject.GetComponent<UICamera>().useMouse=true;
  2.  
Is it possible to ignore multiple events in one frame?
Or maybe I'm wrong in my assumption?
Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Android, mouse and touch events on UIPopupList
« Reply #1 on: July 17, 2013, 04:09:13 AM »
Enabling both mouse and touch events on android is a bad idea because Unity sends mouse events for touch events as well, which results in duplicates. NGUI disables them for a reason.