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

What is Framer? Join the Community
Return to index
Chase Curry
Posted May 15 - Read on Facebook

Does mouseWheelEnabled work with two finger scroll on a mac? It doesn't seem to:

scroll = new ScrollComponent
width:500
height:2200
scroll.centerX()
scroll.mouseWheelEnabled = true
scroll.scrollHorizontal = false

layer = new Layer({
superLayer: scroll.content,
width: 100, height: 200
})

I can scroll by dragging just fine... no mouse love though.

5 Comments

Jonas Treub

The mouseWheelEnabled property does not enable trackpads unfortunately. This has to do with the trackpad simulating physics while the scrollview already does this as well. These simulations do not play well together

Chase Curry

Ah ok- thanks Jonas Treub. Trying to develop a simple desktop prototype that goes below the fold... scrolling by grabbing isn't really an expected behavior. Am I missing a simple way to do this?

Chase Curry

Bump- do we have a way to scroll on desktop? There has to be a way... I'm just a newb :p

Jens Nikolaus

Should work, check this example:
scroll = new ScrollComponent({
width: 100, height: 100
})

# Allow scrolling with mouse
scroll.mouseWheelEnabled = true

layer = new Layer({
image: "images/bg.png",
superLayer: scroll.content,
width: 100, height: 200
})

Chase Curry

Thanks Jens, that does work... though running tests with users if they have a trackpad, they just get stuck. I wonder if I can come up with some kind of a work around... not sure how elements are placed on the page currently, but maybe I'll try adding a container div to the dom directly, not absolutely positioned. Sounds a bit dicey.

Read the entire post on Facebook