This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug with Tossable being used with TransitionSpring instances.
Summary: Possible scenario (in the contextual transition demo): 1. Use a TransitionSpring with Tossable. 2. Prime Draggable with an existing gesture recognizer that is active. 3. Dismiss the photo with a drag. Expected behavior: the photo tracks the drag's movement. Actual behavior: the photo jumps to the final position and then starts translating. This was happening because Draggable was reading the final value of the view before TransitionSpring had a chance to set the proper initial value, causing Draggable's initialValue to be polluted with the wrong value. After this fix, springs will always initialize the initial state before draggable reads its initial state. Reviewers: O2 Material Motion, O4 Material Apple platform reviewers, #material_motion, markwei Reviewed By: O2 Material Motion, O4 Material Apple platform reviewers, #material_motion, markwei Tags: #material_motion Differential Revision: http://codereview.cc/D2821
- Loading branch information