feat(color_picker): add mouse_interaction function (#1326)

This commit is contained in:
Aadil 2026-07-13 23:45:46 +05:30 • committed by GitHub
parent fc5debccef
commit c53b43d41b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -756,6 +756,23 @@ where
fn size(&self) -> Size<Length> {
Size::new(self.width, Length::Shrink)
}
fn mouse_interaction(
&self,
tree: &Tree,
layout: Layout<'_>,
cursor: mouse::Cursor,
viewport: &Rectangle,
renderer: &crate::Renderer,
) -> mouse::Interaction {
self.inner.as_widget().mouse_interaction(
&tree.children[0],
layout,
cursor,
viewport,
renderer,
)
}
}
#[derive(Debug, Default)]