raylib: frame independent scroller (#36227)

* rm that

* almost

* yess

* some work

* more

* todo

* okay viber is good once in a while

* temp

* chadder can't do this

* revert

* this was broken anyway

* fixes

* mouse wheel scroll

* some clean up

* kinda works

* way better

* can tap to stop

* more clean up

* more clean up

* revert last mouse

* fix

* debug only

* no print

* ahh setup.py fps doesn't affect DEFAULT_FPS ofc

* rest

* fix text

* fix touch valid for network
This commit is contained in:
Shane Smiskol
2025-09-30 22:25:43 -07:00
committed by GitHub
parent 63e0e038fa
commit 5f33b2fb2d
9 changed files with 123 additions and 190 deletions
+2 -2
View File
@@ -116,10 +116,10 @@ class HtmlRenderer(Widget):
total_height = self.get_total_height(int(scrollable_rect.width))
scroll_content_rect = rl.Rectangle(scrollable_rect.x, scrollable_rect.y, scrollable_rect.width, total_height)
scroll_offset = self._scroll_panel.handle_scroll(scrollable_rect, scroll_content_rect)
scroll_offset = self._scroll_panel.update(scrollable_rect, scroll_content_rect)
rl.begin_scissor_mode(int(scrollable_rect.x), int(scrollable_rect.y), int(scrollable_rect.width), int(scrollable_rect.height))
self._render_content(scrollable_rect, scroll_offset.y)
self._render_content(scrollable_rect, scroll_offset)
rl.end_scissor_mode()
button_width = (rect.width - 3 * 50) // 3