fix horizontal scroll

This commit is contained in:
Will McGugan
2023-02-18 15:20:09 +00:00
parent f94f6e4ba4
commit 463ff3fa8b

View File

@@ -356,7 +356,7 @@ class ScrollBar(Widget):
self.grabbed_position
+ (
(event.screen_x - self.grabbed.x)
* (self.window_virtual_size / self.window_size)
* (virtual_size / self.window_size)
)
)
await self.post_message(ScrollTo(self, x=x, y=y))