# Set Mouse Position Regression

**URL:** <https://forums.unrealengine.com/t/set-mouse-position-regression/376578>\
**Category:** UI\
**Tags:** unreal-engine, mouse-position, question, UMG\
**Created:** [November 17, 2016, 8:14am UTC](https://forums.unrealengine.com/t/set-mouse-position-regression/376578 "2016-11-17T08:14:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgrieshofer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dgrieshofer](https://forums.unrealengine.com/u/dgrieshofer)\
**Post date:** [November 17, 2016, 8:14am UTC](https://forums.unrealengine.com/t/set-mouse-position-regression/376578/1 "2016-11-17T08:14:04Z")

</div>

Reproduce:

 ![115262-untitled-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/8/2680eb21fdd1f8552a83f667d05daeb4139eb895.png)

- Press P
- Mouse position gets set running in PIE
- Mouse position gets ignored and instead set to center in standalone (-game) or when packaged.

Workaround:

- Add Delay node before `SetMousePosition` so that it gets called after next frame (but this is framerate dependent)

Regression:

- **Yes** (In 4.13.2 it was working perfectly. `SetMousePosition` was added in 4.14 but I added the exact same function code on my 4.13 project since this is very useful)

Note:

May or may not have something to do with this 4.14 change:

> If we are unable to set the focus immediately, possibly because the user is setting focus in the Construct callback before the widget is in the tree, we now update the Slate Operations FReply on Local Player to set focus in the next frame when it is more likely the widget will become focus-able.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [November 17, 2016, 3:07pm UTC](https://forums.unrealengine.com/t/set-mouse-position-regression/376578/2 "2016-11-17T15:07:52Z")

</div>

Hello dgrieshofer,

I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have also provided a link to the public tracker. Please feel free to use the link provide for future updates. Thank you for your time and information.

Link: [Unreal Engine Issues and Bug Tracker (UE-38739)](https://issues.unrealengine.com/issue/UE-38739)

Make it a great day
