Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
mouse_focus
and mouse_focus_mask
consistent for force_drag
In `Viewport::_gui_force_drag` currently `Viewport::gui.mouse_focus` gets cleared, but `Viewport::gui.mouse_focus_mask` doesn't get cleared. This is an inconsistency which can cause a crash. With the change of this PR, `mouse_focus_mask` also gets cleared. This is in alignment with how regular drag and drop clears both variables.
- Loading branch information