mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Ignore the delta from the NSEvent for now, generating multiple scroll
2008-02-08 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Ignore the delta from the NSEvent for now, generating multiple scroll events results in a lot of events getting queued up and things get really slow. svn path=/trunk/; revision=19499
This commit is contained in:
parent
c12d7baeca
commit
d6098bb41a
@ -1,3 +1,10 @@
|
||||
2008-02-08 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Ignore the
|
||||
delta from the NSEvent for now, generating multiple scroll events
|
||||
results in a lot of events getting queued up and things get really
|
||||
slow.
|
||||
|
||||
2008-02-08 Sven Herzberg <sven@imendio.com>
|
||||
|
||||
Adjust the code to match the documentation, examples, "common sense"
|
||||
|
@ -1781,6 +1781,9 @@ gdk_event_translate (NSEvent *nsevent)
|
||||
event = create_scroll_event (window, nsevent, direction);
|
||||
append_event (event);
|
||||
dy--;
|
||||
|
||||
/* Ignore the delta for now, things get too slow when the events queue up. */
|
||||
break;
|
||||
}
|
||||
|
||||
/* Now do x events */
|
||||
@ -1797,6 +1800,9 @@ gdk_event_translate (NSEvent *nsevent)
|
||||
event = create_scroll_event (window, nsevent, direction);
|
||||
append_event (event);
|
||||
dx--;
|
||||
|
||||
/* Ignore the delta for now, things get too slow when the events queue up. */
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user