diff options
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/toggler.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/native/src/widget/toggler.rs b/native/src/widget/toggler.rs index 25ed95ca..a11d0307 100644 --- a/native/src/widget/toggler.rs +++ b/native/src/widget/toggler.rs @@ -189,6 +189,19 @@ where } } + fn mouse_interaction( + &self, + layout: Layout<'_>, + _viewport: &Rectangle, + cursor_position: Point, + ) -> mouse::Interaction { + if layout.bounds().contains(cursor_position) { + mouse::Interaction::Pointer + } else { + mouse::Interaction::default() + } + } + fn draw( &self, renderer: &mut Renderer, |