Author Topic: How do I prevent an item in the Scrollview being selected when user is scrolling  (Read 3691 times)

Meltdown

  • Jr. Member
  • **
  • Thank You
  • -Given: 10
  • -Receive: 0
  • Posts: 56
    • View Profile
The problem I'm having is each time the user drags the scrollview, it selects the item their finger is over. I am using a RayCast to select the item. I've trued using OnMouseUp as well, but then it selects the item when their finger goes up.

How can I allow the user to scroll the list back and forth without selecting any item?

Thanks

Holy Manfred

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 8
  • Posts: 71
    • View Profile
Instead of RayCast or MouseUp you could use NGUIs event system which is way easier to handle.
You can see the various events here: http://www.tasharen.com/forum/index.php?topic=6711.0