refactor(tracker): remove SetCursorFloat method from TableData

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-06-20 15:17:21 +03:00
parent 430b01d143
commit 840fe3ef0e
2 changed files with 3 additions and 7 deletions

View File

@ -159,9 +159,10 @@ func (s *ScrollTableStyle) handleEvents(gtx layout.Context, p image.Point) {
dy := (e.Position.Y + float32(s.ScrollTable.RowTitleList.List.Position.Offset)) / float32(gtx.Dp(s.CellHeight))
x := dx + float32(s.ScrollTable.ColTitleList.List.Position.First)
y := dy + float32(s.ScrollTable.RowTitleList.List.Position.First)
s.ScrollTable.Table.SetCursor2(tracker.Point{X: int(x), Y: int(y)})
cursorPoint := tracker.Point{X: int(x), Y: int(y)}
s.ScrollTable.Table.SetCursor2(cursorPoint)
if e.Kind == pointer.Press && !e.Modifiers.Contain(key.ModShift) {
s.ScrollTable.Table.SetCursorFloat(x, y)
s.ScrollTable.Table.SetCursor(cursorPoint)
}
s.ScrollTable.cursorMoved = true
case pointer.Release: