Commit 570c054a authored by Jan Djärv's avatar Jan Djärv
Browse files

Generate HORIZ_WHEEL_EVENT.

* nsterm.m (mouseDown:): Generate HORIZ_WHEEL_EVENT.
parent ce41edb4
2013-12-19 Anders Lindgren <andlind@gmail.com>
* nsterm.m (mouseDown:): Generate HORIZ_WHEEL_EVENT.
2013-12-18 Paul Eggert <eggert@cs.ucla.edu>
Minor fixes for recent openp changes.
......
......@@ -5498,8 +5498,18 @@ - (void)mouseDown: (NSEvent *)theEvent
CGFloat delta = [theEvent deltaY];
/* Mac notebooks send wheel events w/delta =0 when trackpad scrolling */
if (delta == 0)
return;
emacs_event->kind = WHEEL_EVENT;
{
delta = [theEvent deltaX];
if (delta == 0)
{
NSTRACE (deltaIsZero);
return;
}
emacs_event->kind = HORIZ_WHEEL_EVENT;
}
else
emacs_event->kind = WHEEL_EVENT;
emacs_event->code = 0;
emacs_event->modifiers = EV_MODIFIERS (theEvent) |
((delta > 0) ? up_modifier : down_modifier);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment