koenbok/Framer

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

isaacw opened this issue · 0 comments

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