Remote control: scroll-window: Allow fractional scrolling since we now have pixel scroll

This commit is contained in:
Kovid Goyal
2026-01-22 13:05:22 +05:30
parent 82d3364e4a
commit 75ce50400e
5 changed files with 69 additions and 18 deletions

View File

@@ -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