Fix coarse scroll deltas on macOS

* src/nsterm.m (- mouseDown): Multiply deltas as appropriate.
This commit is contained in:
Po Lu 2021-12-08 19:44:50 +08:00
parent f10d4b31d6
commit 58cf601aad

View file

@ -6658,8 +6658,10 @@ - (void)mouseDown: (NSEvent *)theEvent
? ceil (fabs (delta)) : 1;
scrollUp = delta > 0;
x = [theEvent scrollingDeltaX];
y = [theEvent scrollingDeltaY];
x = ([theEvent scrollingDeltaX]
* FRAME_COLUMN_WIDTH (emacsframe));
y = ([theEvent scrollingDeltaY]
* FRAME_LINE_HEIGHT (emacsframe));
}
if (lines == 0 && mwheel_coalesce_scroll_events)