From 3398cb71ddc55c5bb6e6753797725c243a6dfd99 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 24 Dec 2019 22:47:27 +0000 Subject: [PATCH] Fix horizontal only scroll refresh --- CHANGELOG.md | 1 + widget/scroller.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 553a66ff4e..61d5d2bab4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ More detailed release notes can be found on the [releases page](https://github.c * Shadows disappeared when theme changes (#589) * iOS apps could stop rendering after many refreshes (#584) * Fyne package could fail on Windows (#586) +* Horizontal only scroll container may not refresh using scroll wheel ## 1.2 - 12 December 2019 diff --git a/widget/scroller.go b/widget/scroller.go index 685ce67b75..9f2e56f789 100644 --- a/widget/scroller.go +++ b/widget/scroller.go @@ -320,7 +320,8 @@ func (r *scrollContainerRenderer) updatePosition() { Renderer(r.vertArea).Layout(r.scroll.size) Renderer(r.horizArea).Layout(r.scroll.size) - canvas.Refresh(r.vertArea) // this is required to force the canvas to update, we have no "Redraw()" + canvas.Refresh(r.vertArea) // this is required to force the canvas to update, we have no "Redraw()" + canvas.Refresh(r.horizArea) // this is required like above but if we are horizontal } // ScrollContainer defines a container that is smaller than the Content.