Fix mouse_interaction and on_event for Scrollable

This commit is contained in:
Héctor Ramón Jiménez 2024-03-08 16:59:25 +01:00
parent edf7d7ca75
commit 0a65fd0d74
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -377,7 +377,7 @@ where
self.content.as_widget_mut().on_event( self.content.as_widget_mut().on_event(
&mut tree.children[0], &mut tree.children[0],
event.clone(), event.clone(),
layout, content,
cursor, cursor,
renderer, renderer,
clipboard, clipboard,
@ -880,7 +880,7 @@ where
self.content.as_widget().mouse_interaction( self.content.as_widget().mouse_interaction(
&tree.children[0], &tree.children[0],
layout, content_layout,
cursor, cursor,
&Rectangle { &Rectangle {
y: bounds.y + translation.y, y: bounds.y + translation.y,