mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 07:24:41 +02:00
Remote control: scroll-window: Allow fractional scrolling since we now have pixel scroll
This commit is contained in:
@@ -25,7 +25,7 @@ func parse_scroll_amount(amt string) ([]any, error) {
|
||||
if err != nil {
|
||||
return ans, err
|
||||
}
|
||||
if !pages && q != float64(int(q)) {
|
||||
if (unscroll || prompt) && q != float64(int(q)) {
|
||||
return ans, fmt.Errorf("The number must be an integer")
|
||||
}
|
||||
ans[0] = q * mult
|
||||
|
||||
Reference in New Issue
Block a user