Skip to content

Commit

Permalink
Double the macOS escape sequence wait period after encounting spuriou…
Browse files Browse the repository at this point in the history
…s escape keypresses due to rapid mouse wheel events
  • Loading branch information
rationull committed Jan 23, 2018
1 parent 842e443 commit 534a885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Expand Up @@ -307,7 +307,7 @@ func PollEvent() Event {
// Constant governing macOS specific behavior. See https://github.com/nsf/termbox-go/issues/132
// This is an arbitrary delay which hopefully will be enough time for any lagging
// partial escape sequences to come through.
const esc_wait_delay = 50 * time.Millisecond
const esc_wait_delay = 100 * time.Millisecond

var event Event
var esc_wait_timer *time.Timer
Expand Down

0 comments on commit 534a885

Please sign in to comment.