[gimp] app: Halve the rate of distance-based drag-to-zoom scaling
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Halve the rate of distance-based drag-to-zoom scaling
- Date: Tue, 5 Apr 2022 13:08:17 +0000 (UTC)
commit 4cffd91af4319b3431603e19a04939bd629fb8ae
Author: woob <thetoastcaper gmail com>
Date: Tue Mar 1 18:52:49 2022 -0500
app: Halve the rate of distance-based drag-to-zoom scaling
Reduces the rate from +/- 1% of the current scale per pixel, to 0.5% to
allow for more fine control while zooming.
app/display/gimpdisplayshell-scale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/display/gimpdisplayshell-scale.c b/app/display/gimpdisplayshell-scale.c
index 3f443c650c..c840f962f9 100644
--- a/app/display/gimpdisplayshell-scale.c
+++ b/app/display/gimpdisplayshell-scale.c
@@ -819,7 +819,7 @@ gimp_display_shell_scale_drag (GimpDisplayShell *shell,
{
gimp_display_shell_scale (shell,
GIMP_ZOOM_TO,
- scale * exp (0.01 * delta_y),
+ scale * exp (0.005 * delta_y),
GIMP_ZOOM_FOCUS_POINTER);
}
else if (delta_y > 0.0) /* drag_zoom_mode == PROP_DRAG_ZOOM_MODE_DURATION */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]