Skip to content

Commit

Permalink
GTK: Fix wrong direction of zoom when "smooth scrolling" with mouse w…
Browse files Browse the repository at this point in the history
…heel

... on Linux/GTK

The bug was introduced here 31d0c27
solvespace#1464
solvespace#1470

Fixes solvespace#1488
  • Loading branch information
ruevs committed Oct 7, 2024
1 parent 5528da7 commit c619fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/guigtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ class GtkGLWidget : public Gtk::GLArea {
// gdk_scroll_event_get_direction((GdkEvent*)gdk_event, &dir);

if(gdk_event_get_scroll_deltas((GdkEvent*)gdk_event, &dx, &dy)) {
delta = dy;
delta = -dy;
} else if(gdk_event_get_scroll_direction((GdkEvent*)gdk_event, &dir)) {
if(dir == GDK_SCROLL_UP) {
delta = 1;
Expand Down

0 comments on commit c619fa9

Please sign in to comment.