Skip to content

Commit a223842

Browse files
committed
Fix bug in dragging optimization
Switch char_props -> chars_props, so the optimization is properly applied. The optimization skips queued up drag events.
1 parent ffa674a commit a223842

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/scrollview.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3121,7 +3121,7 @@ local handle_mouse = function(button, is_primary, init_props, init_mousepos)
31213121
or vim.tbl_contains({mousedown, mouseup}, char) then
31223122
break
31233123
end
3124-
if idx >= #char_props then break end
3124+
if idx >= #chars_props then break end
31253125
local next_char_props = chars_props[idx + 1]
31263126
if next_char_props.mouse_winid == 0
31273127
or vim.tbl_contains({mousedown, mouseup}, next_char_props.char) then

0 commit comments

Comments
 (0)