[gthumb/gthumb-3-10] Fixed jump to bottom when selecting thumbnails with mouse
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-10] Fixed jump to bottom when selecting thumbnails with mouse
- Date: Sun, 13 Dec 2020 15:06:32 +0000 (UTC)
commit b07d10e914bfd416a46f805d1f5d1e53b4193b3f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Dec 13 15:58:02 2020 +0100
Fixed jump to bottom when selecting thumbnails with mouse
Fixes https://gitlab.gnome.org/GNOME/gthumb/-/issues/147
gthumb/gth-grid-view.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index 85980ff4..356c1fe9 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -50,7 +50,6 @@
#define DEFAULT_THUMBNAIL_BORDER 3
#define SCROLL_DELAY 30
#define LAYOUT_DELAY 20
-#define MAX_DELTA_FOR_SCROLLING 1024.0
#define RUBBERBAND_BORDER 2
#define STEP_INCREMENT 0.10
#define PAGE_INCREMENT 0.33
@@ -3163,10 +3162,6 @@ gth_grid_view_motion_notify (GtkWidget *widget,
else if (self->priv->selecting) {
double y_delta;
- y_delta = event->y - gtk_adjustment_get_value (self->priv->vadjustment);
- if (fabs (y_delta) > MAX_DELTA_FOR_SCROLLING)
- event->y = gtk_adjustment_get_upper (self->priv->vadjustment);
-
_gth_grid_view_update_mouse_selection (self, event->x, event->y);
/* If we are out of bounds, schedule a timeout that will do
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]