AJWDraggableDroppable icon indicating copy to clipboard operation
AJWDraggableDroppable copied to clipboard

How to snap back to initial point?

Open hdoria opened this issue 10 years ago • 4 comments

Hi,

I have a draggable UIView on CGPoint(100,100). How can i make it snap back to this point on miss? The line below does not works (it has a strange behavior).

self.dragDropController.snapsDraggablesToDroppableSnapPointOnHit = YES;

hdoria avatar Mar 25 '15 15:03 hdoria

That snaps to the droppable's snap point if the draggable is dropped in the drioppable's bounds. You should use: snapsDraggablesBackToDragStartOnMiss

adamwaite avatar May 11 '15 12:05 adamwaite

I'm sorry. I was using snapsDraggablesBackToDragStartOnMiss.

hdoria avatar May 11 '15 14:05 hdoria

Ok no worries. Will look into it on the 23rd May weekend.

adamwaite avatar May 13 '15 09:05 adamwaite

I have the same problem. When I use:

[self.dragDropController snapDraggableToStartingLocationFromGesture:gestureRecognizer];

It snaps the draggable with awkward motion and after a few times, it snaps it out of bounce.

ibjazz avatar May 17 '15 19:05 ibjazz