add support for "pixel-perfect" scrolling
This commit is contained in:
parent
209eaf960d
commit
c1509ac8fa
6 changed files with 57 additions and 19 deletions
3
main.go
3
main.go
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue