MCPcopy Create free account
hub / github.com/cogentcore/core / scrollCursorToTarget

Method scrollCursorToTarget

texteditor/nav.go:923–928  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

921}
922
923func (ed *Editor) scrollCursorToTarget() {
924 // fmt.Println(ed, "to target:", ed.CursorTarg)
925 ed.CursorPos = ed.cursorTarget
926 ed.scrollCursorToVerticalCenter()
927 ed.targetSet = false
928}
929
930///////////////////////////////////////////////////////////////////////////////
931// Scrolling -- Horizontal

Callers 1

RenderWidgetMethod · 0.95

Calls 1

Tested by

no test coverage detected