Don't adjust mouse coordinates

Fixes #23
This commit is contained in:
Zachary Yedidia 2016-04-20 12:50:13 -04:00
parent aaa0f29540
commit b5b84d9068

View file

@ -527,9 +527,6 @@ func (v *View) HandleEvent(event tcell.Event) {
x, y := e.Position()
x -= v.lineNumOffset - v.leftCol
y += v.topline
// Position always seems to be off by one
x--
y--
button := e.Buttons()