From 8808c42d6db08a7b2c8ebe6bac9982028161b87d Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Thu, 3 Oct 2024 13:58:05 +0200 Subject: Fix FS#13494 Change-Id: Ie306418431eb412dac00907eb2f59999d8b4dfb0 --- apps/plugins/imageviewer/imageviewer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/imageviewer/imageviewer.c') diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c index 9d5aea7f15..b849812508 100644 --- a/apps/plugins/imageviewer/imageviewer.c +++ b/apps/plugins/imageviewer/imageviewer.c @@ -717,6 +717,7 @@ static int scroll_bmp(struct image_info *info, bool initial_frame) #ifdef IMGVIEW_ZOOM_PRE if (lastbutton != IMGVIEW_ZOOM_PRE) break; + lastbutton = button; #endif return ZOOM_IN; break; @@ -725,6 +726,7 @@ static int scroll_bmp(struct image_info *info, bool initial_frame) #ifdef IMGVIEW_ZOOM_PRE if (lastbutton != IMGVIEW_ZOOM_PRE) break; + lastbutton = button; #endif return ZOOM_OUT; break; -- cgit v1.2.3