Skip to content

Commit

Permalink
fix: cursor placement clicking inside Entry widget
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbirster committed Apr 29, 2022
1 parent c36764a commit f763182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ func (e *Entry) getRowCol(p fyne.Position) (int, int) {
row = 0
} else if row >= e.textProvider().rows() {
row = e.textProvider().rows() - 1
col = 0
col = e.textProvider().rowLength(row)
} else {
col = e.cursorColAt(e.textProvider().row(row), p.Add(e.scroll.Offset))
}
Expand Down

0 comments on commit f763182

Please sign in to comment.