Fix coarse scroll deltas on macOS
* src/nsterm.m (- mouseDown): Multiply deltas as appropriate.
This commit is contained in:
parent
f10d4b31d6
commit
58cf601aad
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue