diff --git a/eventBindings.go b/eventBindings.go index 02f33a6..05d1442 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -106,12 +106,22 @@ func theDarkness(g *gocui.Gui, v *gocui.View) error { } func wheelsUp(g *gocui.Gui, v *gocui.View) error { - log.Info("private wheels up") + // log.Info("private wheels up") + me.stdout.pager -= 2 + if me.stdout.pager < 0 { + me.stdout.pager = 0 + } + me.stdout.tk.refreshStdout() return nil } func wheelsDown(g *gocui.Gui, v *gocui.View) error { - log.Info("you've landed") + // log.Info("you've landed") + me.stdout.pager += 2 + if me.stdout.pager > len(me.stdout.outputS) { + me.stdout.pager = len(me.stdout.outputS) + } + me.stdout.tk.refreshStdout() return nil }