Skip to content

Commit

Permalink
mistake in boolean logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhawk18 committed May 16, 2024
1 parent dabcc3f commit 70c3fe0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widgets/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,9 @@ where
let mouse_over_decrease = dec_bounds.contains(cursor.position().unwrap_or_default());
let mouse_over_increase = inc_bounds.contains(cursor.position().unwrap_or_default());

if (mouse_over_decrease && !is_decrease_disabled)
|| (mouse_over_increase && !is_increase_disabled) && !self.ignore_buttons
if ((mouse_over_decrease && !is_decrease_disabled)
|| (mouse_over_increase && !is_increase_disabled))
&& !self.ignore_buttons
{
mouse::Interaction::Pointer
} else if is_mouse_over {
Expand Down

0 comments on commit 70c3fe0

Please sign in to comment.