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

Resetting color on a TextLayer nested in a ScrollComponent breaks scroll interactions #576

Open
isaacw opened this issue Apr 29, 2018 · 0 comments

Comments

@isaacw
Copy link

isaacw commented Apr 29, 2018

For some reason, changing the color in the middle of a scrolling interaction, will stop the scrolling.

Here's an example (open in Framer):
https://framer.cloud/nDjeA

Video repro:
https://www.dropbox.com/s/rarow0f2xrxrnt9/Framer%20scroll%20color%20bug.mov?dl=0

Note:

  • Breaks in Framer and Safari, but works in Chrome (there's another bug with onTouchEnd not getting picked up, but that's a separate issue)
  • Try using Utils.delay() for setting the color to see a more exaggerated effect. It seems like once you reset the color, that particular TextLayer no longer captures/bubbles-up the events necessary for scrolling
  • I'm on a slightly outdated version of Framer (114) due to some Sketch and Facebook plugins dependencies
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

No branches or pull requests

1 participant