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:
Richard Hult 2008-02-08 19:08:40 +00:00 committed by Richard Hult
parent c12d7baeca
commit d6098bb41a
2 changed files with 13 additions and 0 deletions

View File

@ -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"

View File

@ -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;
}
}