* nsterm.m (mouseDown:): Generate HORIZ_WHEEL_EVENT.
+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.
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);