<AWT Dev>  Review request for 8166591 [macos 10.12] Trackpad scrolling of text on OS X 10.12 Sierra is very fast (Trackpad, Retina only)
malenkov at gmail.com
Fri Sep 30 10:58:04 UTC 2016
> # C [AppKit+0x3a528e] -[NSApplication _crashOnException:]+0x6d
> The app is crashed as soon as I start scrolling. Investigating...
> May be it is my fault during backporting.
Sorry, It was may fault.
> +// SCROLL EVENT MASK
> +#define SCROLL_PHASE_UNSUPPORTED 1
> replace the comment with the following one:
> +// TRACKPAD SCROLL EVENT PHASE
I discovered how we should detect mouse event properly: use both
properties phase and momentumPhase.
"The momentumPhase property helps you detect momentum scrolling, in
which the hardware continues to issue scroll wheel events even though
the user is no longer physically scrolling."
if (phase==NULL) && (momentumPhase==NULL) -> this is a mouse event.
scrolling by trackpad generates the following events:
So, we should generate PHASE_UNSUPPORTED only
if ((phase == NULL) && (momentumPhase == NULL))
Sergey A. Malenkov
More information about the awt-dev