diff options
Diffstat (limited to '')
| -rw-r--r-- | native/src/widget/pick_list.rs | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/native/src/widget/pick_list.rs b/native/src/widget/pick_list.rs index 57375a72..6fe5feb7 100644 --- a/native/src/widget/pick_list.rs +++ b/native/src/widget/pick_list.rs @@ -326,6 +326,22 @@ where          }      } +    fn mouse_interaction( +        &self, +        layout: Layout<'_>, +        _viewport: &Rectangle, +        cursor_position: Point, +    ) -> mouse::Interaction { +        let bounds = layout.bounds(); +        let is_mouse_over = bounds.contains(cursor_position); + +        if is_mouse_over { +            mouse::Interaction::Pointer +        } else { +            mouse::Interaction::default() +        } +    } +      fn draw(          &self,          renderer: &mut Renderer,  | 
