UIView-DragDrop icon indicating copy to clipboard operation
UIView-DragDrop copied to clipboard

Additional Delegate call, and common superview hit testing

Open slangley opened this issue 10 years ago • 2 comments

There are 2 changes here:

  1. Add a delegate call for when the view did return to the starting position
  2. More importantly - if views were not direct siblings of each other, the hit testing for hover and drop were not correct. Added in a check to use the nearest parent view of both views (drop views, and the dragged view) in order to do hover and drop testing.

slangley avatar Jan 15 '15 14:01 slangley

Cool. Thanks @slangley. We should implement the new delegate method in the example project.

Speaking of the example project.. it looks like it is broken under iOS 8.1. Funny how things tend to break when neglected for a little while. Issue #6 created. I'll see if I can make some time to take a closer look.

ryanmeisters avatar Jan 15 '15 18:01 ryanmeisters

I can implement in the example, and see if I can resolve #6

slangley avatar Jan 15 '15 19:01 slangley