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

What is Framer? Join the Community
Return to index
Phil Letourneau
Posted Oct 03 - Read on Facebook

Hi Folks,

I'm trying to stop a slider from propagating events to its parent layer. This syntax doesn't appear to work:

slider.on "change:value", (event) ->
event.stopPropagation()

Any suggestions?

3 Comments

Jordan Robert Dobson

I don't expect it will work that way.

So you just want the slider to move but not change its value?

Phil Letourneau

I have a MouseUp event on the parent layer of the slider component. When using the slider, it's firing the MouseUp on the parent layer. I want to prevent the slider from propagating its events on the parent.

Jordan Robert Dobson

So add a mouse up event on the slider and apply stop propagation there.

Read the entire post on Facebook