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 using a couple lines similar to this <LineTo from="img" to="img2" borderColor="white" borderWidth={4} />
When rendered initially, the lines show up great, but if I move the images around say with animation or just by moving their relative position on screen by changing the size of the window, the lines stay where they were when first rendered, rather than following the images around. Am I doin' something wrong?
The text was updated successfully, but these errors were encountered:
This is by design. The line component is rendered relative to the window using absolute positioning. To update the line you need to trigger a render whenever the referenced objects change position.
Here's some reference code which does exactly this, from an earlier commit:
I'm using a couple lines similar to this
<LineTo from="img" to="img2" borderColor="white" borderWidth={4} />
When rendered initially, the lines show up great, but if I move the images around say with animation or just by moving their relative position on screen by changing the size of the window, the lines stay where they were when first rendered, rather than following the images around. Am I doin' something wrong?
The text was updated successfully, but these errors were encountered: