Skip to content

Commit 70c3fe0

Browse files
committed
mistake in boolean logic
1 parent dabcc3f commit 70c3fe0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/widgets/number_input.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,9 @@ where
611611
let mouse_over_decrease = dec_bounds.contains(cursor.position().unwrap_or_default());
612612
let mouse_over_increase = inc_bounds.contains(cursor.position().unwrap_or_default());
613613

614-
if (mouse_over_decrease && !is_decrease_disabled)
615-
|| (mouse_over_increase && !is_increase_disabled) && !self.ignore_buttons
614+
if ((mouse_over_decrease && !is_decrease_disabled)
615+
|| (mouse_over_increase && !is_increase_disabled))
616+
&& !self.ignore_buttons
616617
{
617618
mouse::Interaction::Pointer
618619
} else if is_mouse_over {

0 commit comments

Comments
 (0)