~eliasnaur/gio-patches

gio: widget: fix List scrolling when cursor in inside an Editor v1 PROPOSED

~inkeliz
~inkeliz: 1
 widget: fix List scrolling when cursor in inside an Editor

 1 files changed, 3 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/15350/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gio] widget: fix List scrolling when cursor in inside an Editor Export this patch

~inkeliz
From: Inkeliz <inkeliz@inkeliz.com>

Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
---
 widget/editor.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/widget/editor.go b/widget/editor.go
index 10f7ae0..2d07188 100644
--- a/widget/editor.go
+++ b/widget/editor.go
@@ -414,7 +414,9 @@ func (e *Editor) layout(gtx layout.Context) layout.Dimensions {
	r.Max.X += pointerPadding
	r.Max.X += pointerPadding
	pointer.Rect(r).Add(gtx.Ops)
	e.scroller.Add(gtx.Ops)
	if e.focused || !e.SingleLine {
		e.scroller.Add(gtx.Ops)
	}
	e.clicker.Add(gtx.Ops)
	e.caret.on = false
	if e.focused {
-- 
2.26.2
What does this fix?

On Sat Nov 28, 2020 at 12:32 AM CET, ~inkeliz wrote: