This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Min-Sang Choi
Posted Aug 04 - Read on Facebook

I need to animate a layer determined by other layer's scrollY. but I think there's delay on returning value when I scroll fast on mobile (desktop's fine). Is there a way that I can get scrollY without delay?

11 Comments

Andreas Wahlström

how long is the delay? can you put together a codepen?

Min-Sang Choi

Andreas Wahlström it's about 1 sec or so. will do shortly.

Min-Sang Choi

Andreas Wahlström not on codepen. but you can check it anyways. http://qcnoodling.com/scrollytest.framer/ code is, as you now, here : http://qcnoodling.com/scrollytest.framer/app.coffee

Andreas Wahlström

no apparent delay here. device related? i'm on iphone 5s

Min-Sang Choi

Andreas Wahlström no, when you drag far / fast enough, you can see "0" is displayed with delay. guess it's related with bounce scrolling of iOS, but not sure. :-(

Andreas Wahlström

oh right. iOS only gives you a scrollevent when the page stops scrolling. the scrollY is really a dragY workaround, if I'm not mistaken. that's why it's not giving you any event feedback when it bounces back. I think the delay is fixed, so you can probably estimate the scrollY value yourself based on where you dropped the layer.

Min-Sang Choi

Andreas Wahlström oh I see, will try workaround based on your idea. and I remember koen made another scrollview, have to check that out too. Thanks man!

Andreas Wahlström

let us know how it goes :)

Koen Bok

Yeah iOS doesn't give scroll events until touchup for perf reasons. My custom scrollview does.

Min-Sang Choi

Koen yep, just did my workaround :-) will try your scrollview too. Will share when I'm ready to. Thanks guys!

Koen Bok

Great!

Read the entire post on Facebook