From f34d4329b175e7d1a33a006bec951c2c64e6e978 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Wed, 22 Mar 2023 17:41:52 -0700 Subject: [PATCH] don't show tracklist row hover indicator when favorite toggle is hovered --- ui/widgets/tappablewrappers.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ui/widgets/tappablewrappers.go b/ui/widgets/tappablewrappers.go index 218449ac..9842bdb1 100644 --- a/ui/widgets/tappablewrappers.go +++ b/ui/widgets/tappablewrappers.go @@ -22,6 +22,8 @@ func NewTappbaleIcon(res fyne.Resource) *TappableIcon { return icon } +var _ fyne.Tappable = (*TappableIcon)(nil) + func (t *TappableIcon) Tapped(_ *fyne.PointEvent) { if t.OnTapped != nil { t.OnTapped() @@ -31,6 +33,14 @@ func (t *TappableIcon) Tapped(_ *fyne.PointEvent) { func (t *TappableIcon) TappedSecondary(_ *fyne.PointEvent) { } +var _ desktop.Hoverable = (*TappableIcon)(nil) + +func (t *TappableIcon) MouseIn(*desktop.MouseEvent) {} + +func (t *TappableIcon) MouseOut() {} + +func (t *TappableIcon) MouseMoved(*desktop.MouseEvent) {} + func (t *TappableIcon) Cursor() desktop.Cursor { return desktop.PointerCursor }