diff --git a/terminal/tcell/event.go b/terminal/tcell/event.go index a778dfe..09f05e4 100644 --- a/terminal/tcell/event.go +++ b/terminal/tcell/event.go @@ -135,8 +135,6 @@ func convMouse(event *tcell.EventMouse) terminalapi.Event { } } - // Get only button events, not wheel events - tcellBtn &= tcell.ButtonMask(0xff) switch tcellBtn = event.Buttons(); tcellBtn { case tcell.ButtonNone: button = mouse.ButtonRelease diff --git a/widgets/linechart/value_formatter.go b/widgets/linechart/value_formatter.go index c629469..4621648 100644 --- a/widgets/linechart/value_formatter.go +++ b/widgets/linechart/value_formatter.go @@ -128,7 +128,7 @@ func ValueFormatterSuffix(decimals int, suffix string) ValueFormatter { } // valueFormatterSuffixWithTransformer is a factory that returns a formatter -// that will apply a tranform function to the received value before +// that will apply a transform function to the received value before // returning the decimal with suffix representation. func valueFormatterSuffixWithTransformer(decimals int, suffix string, transformFunc func(float64) float64) ValueFormatter { dFmt := suffixDecimalFormat(decimals, suffix)