Describe the bug
Currently to scroll by clicking and dragging it's necessary to click at the upper half of the scrollbar to ensure the click is registered on the scrollbar. It is even possible to click above the scrollbar and the dragging is possible. This is especially visible on the longer files when the scrollbar is short - I tried with 500 lines file. There seems to be an offset.
To Reproduce
Steps to reproduce the behavior:
Open large file
Click at the end of the scrollbar and drag
Window doesn't scroll <---- not expected
Try clicking slightly above scrollbar and dragging
Window scrolls <---- not expected
Try clicking at the upper half scrollbar and dragging
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{
'lewis6991/satellite.nvim',
opts = {},
}
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
A note which may be helpful: strangely at the beginning of dragging the scrollbar jumps by some offset under the mouse, later it seems to be following the mouse drag as expected.
I understand that this might not be top-priority issue since not many users use mouse but it still is a bit confusing and probably worth investigating.
Describe the bug Currently to scroll by clicking and dragging it's necessary to click at the upper half of the scrollbar to ensure the click is registered on the scrollbar. It is even possible to click above the scrollbar and the dragging is possible. This is especially visible on the longer files when the scrollbar is short - I tried with 500 lines file. There seems to be an offset.
To Reproduce Steps to reproduce the behavior:
Video
https://imgur.com/a/w2V7fkA
Additional context Tested with a minimal config.
A note which may be helpful: strangely at the beginning of dragging the scrollbar jumps by some offset under the mouse, later it seems to be following the mouse drag as expected. I understand that this might not be top-priority issue since not many users use mouse but it still is a bit confusing and probably worth investigating.