Fix warp_mouse for transient windows, smoother mouse positioning when releasing mouse for spinbox
This commit is contained in:
parent
8769088f48
commit
5ac5c8bc06
5 changed files with 18 additions and 3 deletions
|
|
@ -1103,7 +1103,7 @@ Vector2 Viewport::get_mouse_position() const {
|
|||
|
||||
void Viewport::warp_mouse(const Vector2 &p_position) {
|
||||
Transform2D xform = get_screen_transform();
|
||||
Vector2 gpos = xform.xform(p_position).round();
|
||||
Vector2 gpos = xform.xform(p_position);
|
||||
Input::get_singleton()->warp_mouse(gpos);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue