mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(scroll): don't animate 1 line scrolls (jk). Closes #1620
Some checks are pending
CI / ci (push) Waiting to run
Some checks are pending
CI / ci (push) Waiting to run
This commit is contained in:
parent
92a08cece7
commit
d293b21fe1
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ function M.check(win)
|
|||
stats.mousescroll = stats.mousescroll + 1
|
||||
state.current = vim.deepcopy(state.view)
|
||||
return
|
||||
elseif math.abs(state.view.topline - state.current.topline) == 0 then
|
||||
elseif math.abs(state.view.topline - state.current.topline) <= 1 then
|
||||
stats.skipped = stats.skipped + 1
|
||||
state.current = vim.deepcopy(state.view)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue