jpsim / JPSThumbnailAnnotation

A simple mapkit annotation for displaying images and details.
http://jpsim.com/JPSThumbnailAnnotation
MIT License
473 stars 78 forks source link

Artifacts when dragging pin that's not in focus #1

Closed ghost closed 11 years ago

ghost commented 11 years ago

(first: this is really cool! thx)

like this: http://www.youtube.com/watch?v=PmTFWrHwHtk&feature

jpsim commented 11 years ago

Thanks for pointing this out!

At first, I was hoping to fix this by checking for isDragging on the map view, but it doesn't inherit from UIScrollView, so that's out of question. :angry:

I ended up adding a JPSThumbnailAnnotationViewState as a temporary fix to check to make sure we only shrink when the view is expanded and vice versa. Also that we never animate until the current animation is done.

This causes a few other minor issues, but addresses this one.

I'm open to other ideas for a better fix.