Detect double and triple clicks

This commit is contained in:
Zachary Yedidia
2016-03-26 16:32:19 -04:00
parent bc4fdcff43
commit 53290919c8
3 changed files with 71 additions and 5 deletions

View File

@@ -10,8 +10,9 @@ import (
)
const (
synLinesUp = 75 // How many lines up to look to do syntax highlighting
synLinesDown = 75 // How many lines down to look to do syntax highlighting
synLinesUp = 75 // How many lines up to look to do syntax highlighting
synLinesDown = 75 // How many lines down to look to do syntax highlighting
doubleClickThreshold = 400 // How many milliseconds to wait before a second click is not a double click
)
// The main screen