mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-27 17:44:42 +00:00
parent
abddd6eecd
commit
363697a657
3 changed files with 100 additions and 100 deletions
File diff suppressed because one or more lines are too long
|
|
@ -367,13 +367,13 @@ func (v *View) HandleEvent(event tcell.Event) {
|
|||
relocate = false
|
||||
case tcell.WheelUp:
|
||||
// Scroll up
|
||||
scrollSpeed := int(settings["scrollspeed"].(float64))
|
||||
scrollSpeed := int(settings["scrollSpeed"].(float64))
|
||||
v.ScrollUp(scrollSpeed)
|
||||
// We don't want to relocate if the user is scrolling
|
||||
relocate = false
|
||||
case tcell.WheelDown:
|
||||
// Scroll down
|
||||
scrollSpeed := int(settings["scrollspeed"].(float64))
|
||||
scrollSpeed := int(settings["scrollSpeed"].(float64))
|
||||
v.ScrollDown(scrollSpeed)
|
||||
// We don't want to relocate if the user is scrolling
|
||||
relocate = false
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ Here are the options that you can set:
|
|||
|
||||
default value: `on`
|
||||
|
||||
* `scrollspeed`: amount of lines to scroll
|
||||
* `scrollSpeed`: amount of lines to scroll
|
||||
|
||||
default value: `2`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue