Fix cursor and hover styles changing when dragging the mouse
This commit is contained in:
parent
1320fadc30
commit
4d2f5a8e04
3 changed files with 26 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue