From 1ef213ce38367bc24d0e0a2bbfa2afae9ad09b8a Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Tue, 27 Feb 2024 07:53:24 -0800 Subject: [PATCH] started on Value based approach for select pos and size in vector --- vector/select.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vector/select.go b/vector/select.go index f4f34630..fc8fe4f6 100644 --- a/vector/select.go +++ b/vector/select.go @@ -72,9 +72,8 @@ func (gv *VectorView) ConfigSelectToolbar() { gi.NewSeparator(tb) gi.NewLabel(tb).SetText("X: ") - px := gi.NewSpinner(tb, "posx").SetStep(1).SetTooltip("Horizontal coordinate of selection, in document units") - px.OnChange(func(e events.Event) { - gv.SelSetXPos(px.Value) + giv.NewValue(tb, &gv.EditState.DragSelEffBBox.Min.X).SetDoc("Horizontal coordinate of selection, in document units").OnChange(func(e events.Event) { + gv.SelSetXPos(gv.EditState.DragSelEffBBox.Min.X) }) gi.NewLabel(tb).SetText("Y: ")