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

What is Framer? Join the Community
Return to index
Peter Mack
Posted Feb 11 - Read on Facebook

Hey guys,
is there a way to get the scroll direction "up" using the mouse wheel?
if scroll.scrollY > 100 and scroll.direction is "up"

thx for any help :)


Floris Verloop

The scroll.direction does seem to give false return values when a mouse wheel is used, good catch. To work around this you can use the "deltaY" property in the event object to determine the scroll direction. I've made a quick example here:

Peter Mack

many thanks for the quick solution :)

Read the entire post on Facebook