Fix cursor and hover styles changing when dragging the mouse

This commit is contained in:
Mikayla 2023-08-23 17:47:03 -07:00
parent 1320fadc30
commit 4d2f5a8e04
No known key found for this signature in database
3 changed files with 26 additions and 15 deletions

View file

@ -617,10 +617,11 @@ impl<'a> WindowContext<'a> {
}
}
if self
.window
.platform_window
.is_topmost_for_position(*position)
if pressed_button.is_none()
&& self
.window
.platform_window
.is_topmost_for_position(*position)
{
self.platform().set_cursor_style(style_to_assign);
}