GTK2: Fix scrolling for mouse with horizontal wheel, issue #13997

git-svn-id: trunk@20673 -
This commit is contained in:
martin 2009-06-19 20:43:06 +00:00
parent 87e4fec446
commit f510b1631f

View File

@ -162,7 +162,9 @@ begin
AValue := power(Range^.adjustment^.page_size, 2 / 3);
if AEvent^.direction = GDK_SCROLL_UP then
if (AEvent^.direction = GDK_SCROLL_UP) or
(AEvent^.direction = GDK_SCROLL_LEFT)
then
AValue := -AValue;
AValue := gtk_range_get_value(Range) + AValue;