mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 18:59:19 +02:00
GTK2: Fix scrolling for mouse with horizontal wheel, issue #13997
git-svn-id: trunk@20673 -
This commit is contained in:
parent
87e4fec446
commit
f510b1631f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user