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 authored and andydotxyz committed May 2, 2022
1 parent 051a389 commit b82b5ee
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 b82b5ee

Please sign in to comment.