[shotwell] Use different factors for smooth scrolling
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Use different factors for smooth scrolling
- Date: Sat, 8 Oct 2022 04:30:14 +0000 (UTC)
commit 0d9739878857c6cf8feeeca1a7659dc851e0e2c9
Author: Jens Georg <mail jensge org>
Date: Wed Sep 28 23:25:45 2022 +0200
Use different factors for smooth scrolling
This way the scrolling with touch pad is still smooth and zooming in the
image is still somewhat manageable
Fixes #4947
src/Page.vala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/Page.vala b/src/Page.vala
index 3915f21c..d21cfa33 100644
--- a/src/Page.vala
+++ b/src/Page.vala
@@ -989,16 +989,16 @@ public abstract class Page : Gtk.ScrolledWindow {
double dx, dy;
event.get_scroll_deltas(out dx, out dy);
- if (dy <= -1.0)
+ if (dy < 0)
return on_mousewheel_up(event);
- else if (dy >= 1.0)
+ else if (dy > 0)
return on_mousewheel_down(event);
- else if (dx <= -1.0)
+ else if (dx < 0)
return on_mousewheel_left(event);
- else if (dx >= 1.0)
+ else if (dx > 0)
return on_mousewheel_right(event);
else
- return true;
+ return false;
}
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]