Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: xerohuang on August 25, 2014, 04:25:35 AM

Title: Bug 3.7.1 UIDragDropItem when cloneOnDrag
Post by: xerohuang on August 25, 2014, 04:25:35 AM
UIDragDropItem

"mDragging = true;" in StartDragging() but lost changing when cloneOnDrag.

My fix:

  1. protected virtual void StartDragging ()
  2.         {
  3.                 if (!mDragging)
  4.                 {
  5.                         mDragging = true;
  6.  
  7.                         if (cloneOnDrag)
  8.                         {
  9.                                 //...
  10.                                 //...
  11.                                 //...
  12.                                 item.Start();
  13.  
  14.                                 //fix:
  15.                                 item.mDragging = true;
  16.                                 mDragging = false;
  17.  
  18.                                 item.OnDragDropStart();
  19.                         }
  20.                         else OnDragDropStart();
  21.                 }
  22.         }
Title: Re: Bug 3.7.1 UIDragDropItem when cloneOnDrag
Post by: ArenMook on August 26, 2014, 02:02:45 AM
Thanks!