You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to animate a component's transform.translateX/Yand its height/width based off a pan gesture (I want to support resizing/moving a rectangle), and this doesn't seem to work well on web. During the pan gesture, the animation for each style seems to happen independently and sporadically flashes between them.
If I'm doing something wrong/weird here would love to hear it! I'm not running into this problem on iOS, though, so my hunch is something is off with web.
Panning the element vertically should animate the element's width. This works OK with a translateY transform, but with a translateX transform (i.e. panning horizontally) the element flickers between the original width and the animated width.
Description
I'm trying to animate a component's
transform.translateX/Y
and itsheight/width
based off a pan gesture (I want to support resizing/moving a rectangle), and this doesn't seem to work well on web. During the pan gesture, the animation for each style seems to happen independently and sporadically flashes between them.If I'm doing something wrong/weird here would love to hear it! I'm not running into this problem on iOS, though, so my hunch is something is off with web.
Not sure if this is a duplicate of #2019.
Expected behavior
Expect both style animations to maintain their shared values and animate smoothly over the course of the gesture.
Actual behavior & steps to reproduce
I can reproduce this behavior just by adding an additional animated
width
style to theDragAndSnapExample
example component:Panning the element vertically should animate the element's width. This works OK with a
translateY
transform, but with atranslateX
transform (i.e. panning horizontally) the element flickers between the original width and the animated width.Bug.mov
Snack or minimal code example
Snack with the above change to
DragAndSnapExample
: https://snack.expo.io/Pl0TTMZD-Package versions
Affected platforms
The text was updated successfully, but these errors were encountered: