Also changed docview mousewheel into a scroll command.

This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent 7babed1e6b
commit 50c0659445
3 changed files with 12 additions and 6 deletions
+1 -5
View File
@@ -102,13 +102,9 @@ function View:on_text_input(text)
-- no-op
end
function View:on_mouse_wheel(y)
if self.scrollable then
self.scroll.to.y = self.scroll.to.y + y * -config.mouse_wheel_scroll
end
end
end
function View:get_content_bounds()
local x = self.scroll.x