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

What is Framer? Join the Community
Return to index
Junha Kang
Posted Nov 24 - Read on Facebook

hello,

once again, i have another question while using framer

i was trying to make an interaction that moves with interval of certain distance, and to make this interaction used "layer.direction" and if the output is "down" it goes down certain distance and same with the "up"

it seemed to work perfectly fine with dragging but not with the mouse wheel scrolling
(i'm making lot of website prototypes these days)

somehow every time i use mouse wheel the output is "down"

is this normal or am i using it wrong ?

1 Comments

Floris Verloop

Ouch, this is a bug. I'll report a ticket.

There's an easy fix though, inside the "onScroll" event you can check the "deltaY" which is the amount of pixels changed in this event. If it's negative it means the user is scrolling up and vice versa. Here it's implemented in your project → http://share.framerjs.com/voagd1e1fdbk/

Read the entire post on Facebook