IjzerenHein / famous-flex

Animatable layouts, FlexScrollView & widgets for famo.us.
MIT License
279 stars 44 forks source link

Pull to refresh on desktop #107

Closed trobbertze closed 9 years ago

trobbertze commented 9 years ago

Hi Hein

In the FlexScrollView Pull to refresh does not seem to work with a normal 2 finger gesture in any desktop browser.

Down press and drag works in Chrome dev tools in device mode.

A quick guess, I have not really dug into it, is that you are only listening to touch events and not scroll events. Any idea if there is a quick hack I can use to fix this?

IjzerenHein commented 9 years ago

Hey Theo,

In order to enable that you need to set mouseMove to true. Unfortunately, pull to refresh is not possible using mousewheel events, which are fired when you use the (Mac) trackpad. That's because of the nature of 'mousewheel' events, which don't have a 'start' and 'end' phase like mousedown/up and touchstart/touchend has.

IjzerenHein commented 9 years ago

ping @trobbertze Can I close this?

trobbertze commented 9 years ago

Sure thing

On Tue, Jun 9, 2015 at 6:47 PM Hein Rutjes notifications@github.com wrote:

ping @trobbertze https://github.com/trobbertze Can I close this?

— Reply to this email directly or view it on GitHub https://github.com/IjzerenHein/famous-flex/issues/107#issuecomment-110428529 .