add support for "pixel-perfect" scrolling

This commit is contained in:
Unrud 2018-07-31 20:19:10 +02:00
parent 209eaf960d
commit c1509ac8fa
6 changed files with 57 additions and 19 deletions

View file

@ -51,6 +51,9 @@ func processCommand(plugin Plugin, command string) error {
if len(command) == 0 {
return errors.New("empty command")
}
if command == "sf" {
return plugin.PointerScrollFinish()
}
if command[0] == 't' {
text := command[1:]
if !utf8.ValidString(text) {