Author Topic: Draggable panel - stop dragging  (Read 4142 times)

Alessaint

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 67
    • View Profile
Draggable panel - stop dragging
« on: December 22, 2013, 09:02:54 AM »
Hi,

I have a horizontal draggable panel with items. If I drag any item off the panel vertically it is removed from the panel and it can be dragged (via my script) freely across the screen.

The problem is that because I never released mouse button the panel keeps following the horizontal movement of my mouse. Is there any way to force stop the panel drag movement without actually releasing the mouse button?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Draggable panel - stop dragging
« Reply #1 on: December 22, 2013, 12:01:42 PM »
Yes. Watch the NGUI 3.0.7 tutorial video (at the end). I created scroll views that you can drag items out of.

Alessaint

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 67
    • View Profile
Re: Draggable panel - stop dragging
« Reply #2 on: December 22, 2013, 12:19:47 PM »
Will do, thanks a lot! Have a great Christmas...