Implement lastX for cursor movement

This commit is contained in:
Zachary Yedidia
2016-04-04 14:09:24 -04:00
parent bd78c7108f
commit a3fe21a5e6
2 changed files with 10 additions and 0 deletions

View File

@@ -330,6 +330,7 @@ func (v *View) MoveToMouseClick(x, y int) {
}
v.cursor.x = x
v.cursor.y = y
v.cursor.lastVisualX = v.cursor.GetVisualX()
}
// HandleEvent handles an event passed by the main loop