diff options
author | lawl <github@dumbinter.net> | 2022-01-06 10:44:13 +0200 |
---|---|---|
committer | lawl <github@dumbinter.net> | 2022-01-06 16:04:34 +0530 |
commit | 8c34658b64f1efeab501bef57d2bfa9579fe34e2 (patch) | |
tree | 3fef93871214bc85c89ffcd04c6782c8aa3862ce /vendor/github.com/aarzilli/nucular/text.go | |
parent | 38787e4195f2a34d7ec4421caf17cb99bc31fa2b (diff) | |
download | noisetorch-8c34658b64f1efeab501bef57d2bfa9579fe34e2.tar.gz noisetorch-8c34658b64f1efeab501bef57d2bfa9579fe34e2.zip |
Chore: Upgrade nucular GUI dependency
Diffstat (limited to 'vendor/github.com/aarzilli/nucular/text.go')
-rw-r--r-- | vendor/github.com/aarzilli/nucular/text.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/aarzilli/nucular/text.go b/vendor/github.com/aarzilli/nucular/text.go index a51a197..994a79a 100644 --- a/vendor/github.com/aarzilli/nucular/text.go +++ b/vendor/github.com/aarzilli/nucular/text.go @@ -1378,7 +1378,11 @@ func (ed *TextEditor) doEdit(bounds rect.Rect, style *nstyle.Edit, inp *Input, c scroll_step := float64(scroll.H) * 0.1 scroll_inc := float64(scroll.H) * 0.01 scroll_target := float64(d.TextSize.Y + row_height) - ed.Scrollbar.Y = int(doScrollbarv(ed.win, scroll, bounds, scroll_offset, scroll_target, scroll_step, scroll_inc, &style.Scrollbar, inp, font)) + newy := int(doScrollbarv(ed.win, scroll, bounds, scroll_offset, scroll_target, scroll_step, scroll_inc, &style.Scrollbar, inp, font)) + if newy != ed.Scrollbar.Y { + ed.win.ctx.trashFrame = true + } + ed.Scrollbar.Y = newy } return ret |