Example #1
0
 public void DragBegin(int oldX, int oldY, DragAble component)
 {
     OldX = oldX;
     OldY = oldY;
     preX = currentX;
     preY = currentY;
     componentOnDrag = component;
 }
Example #2
0
        public void DragEnd()
        {
            componentOnDrag.DragReleased(preX, preY);

            OldX = 0;
            OldY = 0;
            preX = 0;
            preY = 0;

            componentOnDrag = null;
        }