From bafd4bd22cd26498175a0481a4f201921f8480b5 Mon Sep 17 00:00:00 2001 From: Vladimir Nadvornik Date: Tue, 21 Aug 2012 22:31:05 +0200 Subject: [PATCH] fixed scroll of fullscreen image --- src/layout_image.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layout_image.c b/src/layout_image.c index e92dffc2..27403eaf 100644 --- a/src/layout_image.c +++ b/src/layout_image.c @@ -1496,7 +1496,8 @@ static void layout_image_drag_cb(ImageWindow *imd, GdkEventButton *event, gdoubl LayoutWindow *lw = data; gdouble sx, sy; - if (lw->full_screen && lw->image != lw->full_screen->imd) + if (lw->full_screen && lw->image != lw->full_screen->imd && + imd != lw->full_screen->imd) { if (event->state & GDK_CONTROL_MASK) { @@ -1504,7 +1505,7 @@ static void layout_image_drag_cb(ImageWindow *imd, GdkEventButton *event, gdoubl } else { - image_get_scroll_center(lw->split_images[i], &sx, &sy); + image_get_scroll_center(lw->full_screen->imd, &sx, &sy); sx += dx; sy += dy; } -- 2.20.1