Fix bad popups offset in editor with single window off

Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com>
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
This commit is contained in:
jmb462 2021-08-31 17:43:35 +02:00 committed by Rémi Verschelde
parent ede7614fe2
commit 81efebb3a1
No known key found for this signature in database
GPG key ID: C3336907360768E1
36 changed files with 96 additions and 83 deletions

View file

@ -1283,7 +1283,8 @@ void EditorPropertyEasing::_drag_easing(const Ref<InputEvent> &p_ev) {
}
if (mb->is_pressed() && mb->get_button_index() == MouseButton::RIGHT) {
preset->set_position(easing_draw->get_screen_transform().xform(mb->get_position()));
preset->set_position(easing_draw->get_screen_position() + mb->get_position());
preset->reset_size();
preset->popup();
// Ensure the easing doesn't appear as being dragged