mirror of
https://github.com/zyedidia/micro
synced 2024-09-30 21:23:41 +00:00
parent
1295b877e3
commit
1f89b41070
|
@ -334,7 +334,7 @@ func (v *View) HandleEvent(event tcell.Event) {
|
|||
case *tcell.EventMouse:
|
||||
x, y := e.Position()
|
||||
x -= v.lineNumOffset - v.leftCol
|
||||
y += v.Topline
|
||||
y += v.Topline - v.y
|
||||
// Don't relocate for mouse events
|
||||
relocate = false
|
||||
|
||||
|
|
Loading…
Reference in a new issue