macOS does call ‘handleScrollGestureEvent’. As I recall pScaleX and pScaleY scale between the coordinate system JavaFX uses for layout and the coordinate system the platform uses to report events. On macOS those are the same so pScaleX and pScaleY are always 1.0 (on Windows events are reported in pixels and need to be scaled to layout coordinates). I agree the division by pScaleX and pScaleY should be removed but it shouldn’t make any difference on Mac.
> On Sep 2, 2026, at 8:48 AM, Marius Hanl <[email protected]> wrote: > > On Wed, 2 Sep 2026 15:19:43 GMT, Christopher Schnick <[email protected]> > wrote: > >> Is this platform-specific? > > Yes, if I remember correctly (need to check again) then the MacOS code calls > `handleScrollGestureEvent` instead. Which also does `dx / pScaleX`, so it > might need this fix as well. > > ------------- > > PR Comment: https://git.openjdk.org/jfx/pull/2282#issuecomment-5512270661
