Skip to content

Commit

Permalink
Test is frozen first
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten authored and Jeremy Wootten committed Oct 26, 2024
1 parent 6d65aa8 commit 94c367b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/View/AbstractDirectoryView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -3194,13 +3194,12 @@ namespace Files {
}

protected virtual void on_scroll_event (double dx, double dy) {
Gdk.ModifierType state;
Gtk.get_current_event_state (out state);

if (is_frozen) {
return;
}

Gdk.ModifierType state;
Gtk.get_current_event_state (out state);
if ((state & Gdk.ModifierType.CONTROL_MASK) > 0) {
/* try to emulate a normal scrolling event by summing deltas.
* step size of 0.5 chosen to match sensitivity */
Expand Down

0 comments on commit 94c367b

Please sign in to comment.