mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
st/scroll-view: Fix issue in st_scroll_view_scroll_event()
adjust_with_direction() uses a ClutterScrollDirection not ClutterTextDirection
Fixes: 23b439dc ("st/scroll-view: Use ClutterEvent getter methods")
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6937
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2920>
This commit is contained in:
parent
215282a320
commit
3cfc918976
1 changed files with 2 additions and 2 deletions
|
|
@ -793,7 +793,7 @@ st_scroll_view_scroll_event (ClutterActor *self,
|
|||
break;
|
||||
case CLUTTER_SCROLL_UP:
|
||||
case CLUTTER_SCROLL_DOWN:
|
||||
adjust_with_direction (priv->vadjustment, direction);
|
||||
adjust_with_direction (priv->vadjustment, scroll_direction);
|
||||
break;
|
||||
case CLUTTER_SCROLL_LEFT:
|
||||
case CLUTTER_SCROLL_RIGHT:
|
||||
|
|
@ -807,7 +807,7 @@ st_scroll_view_scroll_event (ClutterActor *self,
|
|||
}
|
||||
else
|
||||
{
|
||||
adjust_with_direction (priv->hadjustment, direction);
|
||||
adjust_with_direction (priv->hadjustment, scroll_direction);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue