Fix for highlighting SelectableLabel

This commit is contained in:
Emil Ernerfeldt 2023-01-28 00:21:53 +01:00
parent c72bdb77b5
commit f222ee044e
2 changed files with 2 additions and 2 deletions

View file

@ -594,7 +594,7 @@ impl Widgets {
&self.noninteractive
} else if response.is_pointer_button_down_on() || response.has_focus() {
&self.active
} else if response.hovered() | response.highlighted() {
} else if response.hovered() || response.highlighted() {
&self.hovered
} else {
&self.inactive

View file

@ -61,7 +61,7 @@ impl Widget for SelectableLabel {
let visuals = ui.style().interact_selectable(&response, selected);
if selected || response.hovered() || response.has_focus() {
if selected || response.hovered() || response.highlighted() || response.has_focus() {
let rect = rect.expand(visuals.expansion);
ui.painter().rect(