Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix items scale on drop #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andryak
Copy link

@andryak andryak commented Nov 4, 2019

When an item is dragged it scales up but when it is released it does not scale back to normal (see attached screenshot).

This seems due to an error in the endTouch method, which is responsible to scale the item back to its normal size. This method starts the animation to scale the item back but then calls the changePosition method which triggers a re-render and interrupts the animation.

This MR fixes this bug by moving the call to changePosition inside endTouch to the completion handler of the animation that scales the item back to normal size.

@andryak
Copy link
Author

andryak commented Nov 4, 2019

Screenshot 2019-11-04 at 16 18 54

After drop, item 037081 remains scaled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant