FXMisc / Flowless

Efficient VirtualFlow for JavaFX
BSD 2-Clause "Simplified" License
185 stars 38 forks source link

Trackpad scrolling with momentum doesn't work on OS X #56

Open teodorov opened 6 years ago

teodorov commented 6 years ago

The vertical scroll lacks fluidity on OSX 10.11.6, while the horizontal scroll works as expected. I have this problem with the demos, with juliar, and with my apps that integrate RichTextFx See attached image for an illustration of the problem

ezgif-4-a6a97b039b

This issue its related to RichTextFX/issues/657 and RichTextFX/issues/265, and the solution proposed by @StrangeNoises works for me on OSX.

The @StrangeNoises code is integrated in the last codebase at #57

JordanMartinez commented 6 years ago

I'd need to study this more to know for sure, but should scrolling be handled entirely by the VirtualFlow (e.g. it handles scrolling in the filter phase of the event process) rather than the cell itself?

If so, should the VirtualFlow fire a new event that is received by the Cell, so that any scroll-related items can still affect that cell if need be?

JordanMartinez commented 6 years ago

Closed by #64