[MCPE-19965] The mouse cursor can move out of the window while unpaused Created: 10/Feb/17  Updated: 28/Dec/24

Status: Open
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 1.21.50.25 Preview, 1.20.10.21 Preview, 1.17.11 Hotfix, 1.17.20.21 Beta, 1.17.20.20 Beta, 1.17.10.21 Beta, 1.16.210.61 Beta, 1.16.210.59 Beta, 1.16.20.50 Beta, 1.16.0.66 Beta, 1.16.0.64 Beta, 1.15.0.8 RTX Beta, 1.16.0.60 Beta, 1.14.30.51 Beta, 1.0.3, 1.5.2.1, 1.6.0, 1.7.0, 1.12.0, 1.14.0, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.0, 1.16.1, 1.16.10, 1.16.20, 1.16.40 Hotfix, 1.16.100, 1.16.201 Hotfix, 1.16.221 Hotfix, 1.17.2 Hotfix, 1.17.40, 1.17.41 Hotfix, 1.18.0, 1.18.31, 1.19.2 Hotfix, 1.19.10, 1.19.20, 1.19.30, 1.19.51, 1.19.63, 1.19.81 Hotfix, 1.19.83 Hotfix, 1.20.0, 1.20.1 Hotfix, 1.20.41 Hotfix, 1.20.60.23 Preview, 1.20.51 Hotfix, 1.20.71 Hotfix, 1.20.81 Hotfix, 1.21.0, 1.21.2 Hotfix, 1.21.30.25 Preview, 1.21.22 Hotfix, 1.21.41 Hotfix, 1.21.43 Hotfix, 1.21.44 Hotfix, 1.21.50, 1.21.51 Hotfix
Fix Version/s: None

Type: Bug
Reporter: Red C
Resolution: Unresolved Votes: 144
Labels: None

Attachments: File 2022-08-21_20-54-35.mp4     File MCBE Mouse Issue.mp4     PNG File Mouse out of Minecraft.png     PNG File Snipaste_2024-01-19_10-14-47.png     PNG File Untitled.png     JPEG File bandicam 2017-02-10 19-21-11-680.jpg     PNG File image-2024-10-25-17-49-12-329.png     PNG File image-2024-10-25-17-55-56-625.png    
Issue Links:
Duplicate
is duplicated by BDS-4147 My mouse is moving behind my screen, ... Resolved
is duplicated by BDS-19837 cursor not locked to window | windows... Resolved
is duplicated by MCPE-21832 Mouse Popping Out Of Window Resolved
is duplicated by MCPE-22904 Mouse when with more than one screen ... Resolved
is duplicated by MCPE-22969 Cursor Doesn't Lock Resolved
is duplicated by MCPE-27182 Minecraft [Win10] Windowed Maximized ... Resolved
is duplicated by MCPE-35148 mouse cursor go out of windows Resolved
is duplicated by MCPE-36050 Mouse Cursor is not bound to window Resolved
is duplicated by MCPE-37348 Mouse doesn't stay in window - 1.6.0 Resolved
is duplicated by MCPE-37759 Cursor interacts with Win10 taskbar. Resolved
is duplicated by MCPE-37792 Mouse Glitch - Mouse Veering Off From... Resolved
is duplicated by MCPE-39195 Mouse moves away on the second monitor Resolved
is duplicated by MCPE-40611 Bad cursor Resolved
is duplicated by MCPE-40766 Mouse out of frame Resolved
is duplicated by MCPE-46924 interference game Resolved
is duplicated by MCPE-49281 mouse is leaving minecraft tab Resolved
is duplicated by MCPE-49365 My crusor does not stay on the screen. Resolved
is duplicated by MCPE-49741 mouse lock can not to be use(minecraf... Resolved
is duplicated by MCPE-49758 Minecraft Windows 10 shows the task b... Resolved
is duplicated by MCPE-50055 Fullscreen on Windows 10 does not wor... Resolved
is duplicated by MCPE-57236 minecraft bedrock cursor not focused Resolved
is duplicated by MCPE-58184 Window glitch on Minecraft Bedrock [W... Resolved
is duplicated by MCPE-58474 Mouse getting out of the screen even ... Resolved
is duplicated by MCPE-62849 When looking around with the mouse, t... Resolved
is duplicated by MCPE-64520 Mouse tracking issue Resolved
is duplicated by MCPE-67777 Dual Monitor issue Resolved
is duplicated by MCPE-67846 With two monitors connected, the mous... Resolved
is duplicated by MCPE-67973 cursor dosent lock Resolved
is duplicated by MCPE-68239 The cursor leaves the game window. Resolved
is duplicated by MCPE-74259 Mouse not fixed in window Resolved
is duplicated by MCPE-76513 Game isn’t fullscreen mode. Always sh... Resolved
is duplicated by MCPE-76514 Taskbar shows when looking up Resolved
is duplicated by MCPE-80720 Mouse leaves gaming window Resolved
is duplicated by MCPE-80767 Taskbar pulling up while I play Resolved
is duplicated by MCPE-81161 Вылезает панель задач при игре - The ... Resolved
is duplicated by MCPE-81773 Minecraft Windows 10 Edition Mouse Gl... Resolved
is duplicated by MCPE-82331 Minecraft Windows 10 Edition MOUSE BUG Resolved
is duplicated by MCPE-82797 鼠标控制光标会脱离游戏外 Resolved
is duplicated by MCPE-90123 Mouse appears on top and bottom Resolved
is duplicated by MCPE-91236 Mouse goes offscreen Resolved
is duplicated by MCPE-91658 Minecraft Windows 10 Edition and full... Resolved
is duplicated by MCPE-91773 Taskbar (Bug?) Resolved
is duplicated by MCPE-93639 Mouse coming out of the game screen Resolved
is duplicated by MCPE-94071 The mouse cursor doesn't fit inside t... Resolved
is duplicated by MCPE-96951 I can't play normally with this task ... Resolved
is duplicated by MCPE-101187 My taskbar is popping up Resolved
is duplicated by MCPE-101567 Computer mouse goes beyond the game Resolved
is duplicated by MCPE-102658 my mouse keeps going out of game Resolved
is duplicated by MCPE-103523 Cursor does not lock behind the scree... Resolved
is duplicated by MCPE-104171 every time either of my friends or i ... Resolved
is duplicated by MCPE-109292 Mouse is not fixed like Java Edition Resolved
is duplicated by MCPE-113741 Mouse bug in minecraft windows 10 Resolved
is duplicated by MCPE-115334 Mouse cursor goes off the screen Resolved
is duplicated by MCPE-115601 task bar Resolved
is duplicated by MCPE-115960 Taskbar showing in game Resolved
is duplicated by MCPE-116411 Mouse Cursor moving in-game Resolved
is duplicated by MCPE-117408 Curser keeps going off screen Resolved
is duplicated by MCPE-117807 Mouse Going Out of Minecraft Window Resolved
is duplicated by MCPE-117842 Full Screen bug Resolved
is duplicated by MCPE-119006 The mouse cursor can move out of the ... Resolved
is duplicated by MCPE-127886 Full Screen Bug, goes to Menu as if E... Resolved
is duplicated by MCPE-129809 Bug where the player can move the mou... Resolved
is duplicated by MCPE-133106 Mouse is able to go off of the game a... Resolved
is duplicated by MCPE-133296 Mouse Does Not Lock While Playing In ... Resolved
is duplicated by MCPE-134172 The cursor leaves the game window. Resolved
is duplicated by MCPE-138268 the mouse moves when I play Resolved
is duplicated by MCPE-140268 My cursor wont stay on the middle of ... Resolved
is duplicated by MCPE-143359 Mouse goes off screen/mouse is not ce... Resolved
is duplicated by MCPE-145471 Cursor Leaves Window While Playing Resolved
is duplicated by MCPE-146878 Lock mouse in application Resolved
is duplicated by MCPE-149361 Mouse leaves screen boundries when in... Resolved
is duplicated by MCPE-156423 Looking up or down brings up the taskbar Resolved
is duplicated by MCPE-158433 mouse cursor goes off screen and brin... Resolved
is duplicated by MCPE-159375 Title bar and Taskbar pops out in ful... Resolved
is duplicated by MCPE-161312 Mouse cursor isn't locked to the wind... Resolved
is duplicated by MCPE-162706 Windows Taskbar keeps popping up when... Resolved
is duplicated by MCPE-166525 Mouse scrolls over topbar/window and ... Resolved
is duplicated by MCPE-167875 Minecraft cursor jump into tusk bar Resolved
is duplicated by MCPE-170105 Mouse cursor is not locked in the game Resolved
is duplicated by MCPE-170934 Windows task bar appearing in full sc... Resolved
is duplicated by MCPE-171276 Сursor bug Resolved
is duplicated by MCPE-171487 full screen and taskbar windows 10 an... Resolved
is duplicated by MCPE-172497 My mouse can leave my minecraft windo... Resolved
is duplicated by MCPE-177108 Cursor not in center and goes to Desk... Resolved
is duplicated by MCPE-177842 mouse cerser leavs Minecraft Resolved
is duplicated by MCPE-178219 Mouse Cursor Abnormal Resolved
is duplicated by MCPE-178279 Cursor isn't locked to the centre of ... Resolved
is duplicated by MCPE-178321 In a game, the mouse pointer moves ou... Resolved
is duplicated by MCPE-179938 the mouse cursor appears and automati... Resolved
is duplicated by MCPE-181557 mouse will not stay in game screen Resolved
is duplicated by MCPE-181755 Mouse losing focus Resolved
is duplicated by MCPE-183023 The mouse is still there if you are i... Resolved
is duplicated by MCPE-184686 Cursor doesn't lock to game Resolved
is duplicated by MCPE-186301 Mouse moves out of game Resolved
is duplicated by MCPE-187855 The cursor slides out of the screen w... Resolved
is duplicated by MCPE-187878 Mouse Doesn't get locked Resolved
is duplicated by MCPE-187897 Taskbar appears when looking down on ... Resolved
is duplicated by MCPE-187957 Problem when using 2 monitors Resolved
is duplicated by MCPE-188003 Mouse cursor flying out of the screen... Resolved
is duplicated by MCPE-188009 mouse cursor not syncing in with the ... Resolved
is duplicated by MCPE-188166 Mouse not locked Resolved
is duplicated by MCPE-188189 Issue where your mouse still tracks a... Resolved
is duplicated by MCPE-188251 Mouse cursor goes off screen Resolved
is duplicated by MCPE-188425 Mouse Cursor goes to second monitor w... Resolved
is duplicated by MCPE-188448 The curser pop up during gameplay Resolved
is duplicated by MCPE-188453 Mouse no longer correctly captured Resolved
is duplicated by MCPE-188462 Cursor goes off-screen to 2nd monitor... Resolved
is duplicated by MCPE-188532 Mouse goes off screen when playing Mi... Resolved
is duplicated by MCPE-188560 my cursor won't stay still. Resolved
is duplicated by MCPE-188656 taskbar appears in fullscreen Resolved
is duplicated by MCPE-188866 Mouscursor leaves game screen, making... Resolved
is duplicated by MCPE-188948 Mouse Cursor Not Locking to Screen Resolved
is duplicated by MCPE-188954 The mouse cursor acts like it's not i... Resolved
is duplicated by MCPE-189082 The cursor does not stay in the cente... Resolved
is duplicated by MCPE-189088 The cursor does not stay in the cente... Resolved
is duplicated by MCPE-189336 The cursor moves out of the window Resolved
is duplicated by MCPE-189470 Cursor goes out of Minecraft Resolved
Confirmation Status: Confirmed
Platform: Windows
CHK:
ADO: 155820

 Description   

When I am mining or pvp, my mouse will move out of the window when I look down in the game, if I click my mouse, game will pause, that really troubled me. Also it seems that this bug has been for lots of versions



 Comments   
Comment by VersedRhyme41 [ 13/Dec/24 ]

I have this same issue aswell, been having it for months now and it makes it impossible to play Minecraft Bedrock.

Comment by deyellowboy65 [ 05/Dec/24 ]

I had this start happening when I got a second monitor. if I set it to duplicate/dont use the second monitor it fixes after sometime but that's not a good fix

Comment by K2Original [ 05/Dec/24 ]

When using mouse and keyboard, the cursor doesn’t lock to the screen, I’ve checked several options to fix this and it’s the only game that has this issue. I see everywhere online of many people reporting this bug and still no fix. Taskbar pulls up if you move down too much, mouse goes to the second monitor if you move too much to the side. The Minecraft boarder pops up in “full screen” if you move it up too much. Very infuriating and no fix gives a permanent solution. I’ve checked solutions within the game, within windows settings and everything should be working but it’s not. The cursor will never lock on the screen and I see hundreds of reports all over Microsoft community and Reddit Minecraft communities with no permanent solutions.

Comment by Inkay_warrior [ 28/Nov/24 ]

Can confirm, this bug only happened to me after I had opened Xbox Gamebar to add someone back that has just friend requested me. I looked everywhere for a solution and this is where it has gotten me to.

I am on Windows 11.

Restarting PC has fixed the issue as long as Xbox Gamebar is not reopened or closed again.

Comment by 51r_a1an [ 22/Nov/24 ]

Windows 11 updates will not resolve the issue for most people.  Windows 10 is still the predominant operating system.  So there will need to be a different path for resolution.

Comment by X1Crafts [ 22/Nov/24 ]

KB5046740 for 24H2 and KB5046732 for 23H2 include the fix for the issue causing mouses to unlock from a game when the Game Bar was opened and then closed. If this is in-fact and issue caused by Windows, then it should be fixed upon the installation of this update. 

Please note that these updates might are still rolling out to Windows 11 users, so you might not receive them immediately.

Comment by plumpqrrot [ 20/Nov/24 ]

This appears to have something to do with Xbox Game Bar. Manually uninstalling it (I don't recommend this as you can no longer accept world invites without it), the Xbox app (I'm not sure if the Xbox app is related or not), and a few extra Xbox components, then rebooting, fixed the issue.

Comment by X1Crafts [ 17/Nov/24 ]

Clay, this fix has not even reached the Beta or Release Preview channel, so its unlikely that we will see it roll out any time soon to either stable 23H2 or stable 24H2.

Comment by Clay [ 17/Nov/24 ]

@X1Crafts Any idea when these fixes/updates will be available for all Windows users?

Comment by X1Crafts [ 16/Nov/24 ]

Could this be related to the issue in which the mouse would unlock from a game after opening and closing Game bar? If so, this might be a Windows issue that was recently fixed in Build 26120.2222 for the Dev Channel.

Comment by LuxxProd [ 16/Nov/24 ]

I saw that people also enabled LUA in the Registry Editor, but that didn't work for me as my value was already set to 1.

To check yours you'll need to open Registry Editor, navigate to the path "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", press "EnableLUA", make sure the value is set to 1 and press "OK". After that you will be prompted to restart your computer.

Comment by LuxxProd [ 15/Nov/24 ]

@Clay Thank you for confirming my point! I saw a comment by a user who claims, that Windows Applications which use UWP (Universal Windows Platform) misses an API feature to lock a mouse pointer to a window, or modifying the pointers position.

Comment by Clay [ 15/Nov/24 ]

@LuxxProd I see the correlation with the Xbox gamebar as well! Can the Minecraft devs actually fix this, or is this a problem that would require Microsoft to make changes to the Windows OS?

Comment by HiveLanky [ 15/Nov/24 ]

Please help me.. Any solutions?

Comment by LuxxProd [ 14/Nov/24 ]

[WORKAROUND TUTORIAL]
For the Mouse Pointer to stay in the window, we will change the "Allow edge swipe" policy setting and launch the game in Fullscreen mode on a single monitor.

Prerequisites: Local Group Policy Editor (not included in Windows Home)

  1. Press WIN+R
  2. Type "gpedit.msc" in the box
  3. Press "OK"
  4. Navigate to "Local Computer Policy>Computer Configuration>Administrative Templates>Windows Components>Edge UI>Allow edge swipe"
  5. Press "Edit policy setting"
  6. Select "Disabled"
  7. Press "Apply"
  8. Press WIN+P
  9. Select "PC screen only"
  10. Launch the Game
  11. Press F11 (alternatively navigate to "Settings>Video>Fullscreen" and make sure it's switched on.)

Now the Title- and Taskbar should stay hidden with every mouse movement.

I think this is the only workaround that works for Windows Apps so the Mouse Pointer stays in the window.

If there is anything I forgot, something I can add or another way to achieve this, let me know in the comments or shoot me a message!

Comment by LuxxProd [ 14/Nov/24 ]

It happens to me if I press WIN+G to open the Game Bar once and right after the cursor will always leave the window.

Comment by jacob draheim [ 14/Nov/24 ]

I’ve been having the same issue it’s making the game unplayable please fix this soon

Comment by TweedlePun [ 14/Nov/24 ]

I started experiencing this issue in the last few days of playing on my Win11 PC. When I started Minecraft after a few days of not playing on the realm I am a part of, I logged into the launcher and was prompted to update the generic Xbox app. I usually communicate with my friends through Discord so I bypass MOST of the features within the social aspect of the app itself. 

Tonight I played around with the various software(s) and was able to maintain regular gameplay (locked cursor within the game screen) until I accessed the Xbox Social tab within the game bar. After my friends contacts loaded, the cursor lock seemed to cancel and the cursor was able to drift outside of the active playing window.

A restart of my PC appears to clear up the issue until I once again open the Xbox Game Bar and click on the Social tab.

Comment by Rylanprime [ 01/Nov/24 ]

we just got to the latest hotfix 1.21.44 and this bug is still not fixed please fix this mojang!
i cant play pvp with this bug its so annoying

Comment by Clay [ 29/Oct/24 ]

I too have been having issues with this! I only noticed it more recently, and it's starting to get really annoying. I've even tried downloading third-party programs, but nothing seems to help.

Comment by snook8 [ 29/Oct/24 ]

I too am having this issue so am unable to turn right when playing the game. As much as I try, I just can't teach myself to only turn left. Please fix

Comment by Cold_Soup [ 28/Oct/24 ]

This bug appeared recently, all tricks to fix it do not work and I will not be playing until this is fixed.

 

Comment by xT1BT [ 28/Oct/24 ]

I am also having this bug now. I've tested all the known solutions and nothing seems to fix the issue. After restarting my computer the problem disappears for a total of about 5 minutes and then reappears in the middle of playing. The cursor doesn't lock to the screen, it just moves around in the background while playing. This is incredibly annoying and makes the game difficult if not impossible to play. As a PvPer, I am not going to be playing the game anymore until either a fix is found.

Comment by DoctorChicken09 [ 26/Oct/24 ]

This started happening last week for me out of nowhere. EnableLUA is set to 1 and it was still not working until I restarted my PC. Then it fixed. And then it came back the next day!! Even after an update for Minecraft, this is still happening.

Comment by Mikel O'Kelen Lanier Jr [ 25/Oct/24 ]

I have had this issue for a little bit now, and at first, I was having a driver issue with my audio (Realtek USB Audio) and every time I launched Minecraft, my audio would stop working and I couldn't play videos either on streaming sites. I was able to do a work-around where I would launch the audio driver suite, and change the speaker config, for some reason that would have it restart. Since then, I have rolled back the driver, and that fixed the audio issue, however, before I got to that point, my Minecraft was doing the thing with the cursor going out of Minecraft and then forcing me out of the game, which was especially bad since I was in the Nether trying to build a bridge and was crouching in my Realm.... which doesn't pause the game but takes you out of it. HOWEVER, I have since found a comment on a Windows support post... in French and had it translated. I was able to have the issue resolved following the first option. My mouse keeps exiting the game screen in Full Screen. - Microsoft Community

Here is a screenshot of it translated already. I hope this helps!!!

I have included a screenshot below showing how the first option should look after being changed to say "Disabled".

Comment by Arthurik [ 09/Jun/24 ]

Can't believe this issue is still unresolved. I fixed it for my friend's son. No idea whether it was @RMSHE's solution about the enabling the "EnableLUA" entry (see below), or whether it was the fact that within the game I went into Settings ->Video and I decreased the Change Safe Zone value so that the safe zone it is at least 50 pixels from the edges of the screen, but it worked.

The strange thing is that the title bar and the Windows taskbar still appear when the game is paused or in the main menu. But while in game, this problem seems to be resolved ¯_(ツ)_/¯

Comment by RMSHE [ 19/Jan/24 ]

I found a solution to this issue on my computer. In the Registry Editor (regedit) (Tip: Use the WIN+R keyboard shortcut to open the Run window, then type "regedit" and click OK within the Run window), navigate to the following path: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" Within the System folder, locate "EnableLUA" double-click to open the file, change the value to "1", click OK, and finally, restart your computer. However, be aware that this may cause a problem where photos cannot be directly dragged into the workspace of Adobe Photoshop 2024.

Comment by bezhdeyire [ 04/Mar/23 ]

How say DeeFeeCee swithing-on UAC at least on first lvl fix this problem.

Comment by 51r_a1an [ 21/Jan/23 ]

This is still happening in Bedrock ver. 1.19.51.  My game is stored locally and not run from any server setup.  The mouse is not locking to the game.  Even in fullscreen mode, the mouse rolls out of the game and can pull up the windows taskbar or the title bar.  I'm running a dual monitor setup, and found a way to keep the mouse in game using a different program called Dual Monitor Tools, but the mouse can still pull down the title bar.

Comment by Zach Wingo [ 31/Dec/22 ]

I just solved the issue. I had another game open in the background that also captures the mouse and it was minimized. After closing the game my issue went away. The other game was Call of Duty Modern Warfare II.

I still find it strange it only showed up playing a local private server.

Comment by Zach Wingo [ 31/Dec/22 ]

I am also having this issue but noticed something that I haven't seen reported. It works as expected when playing a local game or connecting to public servers shown by default. I am only noticing this issue when connecting to Minecraft Servers (Bedrock edition) I created.

I was setting these servers up locally as an experiment and one was running on the latest stable version of Ubuntu Server in VMWare and the most recent Bedrock server direct from minecraft.net. I followed some pretty standard guides online and had this issue. Tonight, I setup a Minecraft Server (Bedrock) using docker on a new windows PC running the latest version of Windows 10 and I'm again having the same issue. The mouse does not lock to the screen and when panning left the mouse moves over to my second monitor. I went into a local map (not a server) and it works fine. I then went into the public servers and it works fine. It's only when connecting to my own servers.

Comment by Daniel W Scutt [ 20/Nov/22 ]

I have this issue as of 1.19.41. This is a seriously old bug.

Desktop, tablet mode disabled (of course), AMD drivers, everything up to date.

Comment by Zoooooomy2 [ 25/Aug/22 ]

Tried resetting keybinds as Johnny suggested, this didn’t help. Changing the UAC settings did resolve the issue though. But as Douglas stated above, this still needs to be fixed so we don’t have to find a workaround. Dev’s please do your job.

Comment by Douglas F Correa [ 14/Aug/22 ]

I have enabled UAC via the control panel & that worked just fine*. You just need to reset your PC after making that change (it worked by changing to "Notify me only when apps try to make changes to my computer". Of course, for certain apps, this now means I have to click a window to give the program permission to run, every time I open the app. Hopefully this bug can be fixed so we don't have to hunt for workarounds for 5-year-old bugs.

*Just fine for Minecraft. Other applications I run still require a dialogue box or elevation & this workaround is cumbersome. I'm just glad this worked for me, others have not had that good fortune.

Comment by JohnnyTamale1 [ 13/Aug/22 ]

Hey everyone, I am not having this issue myself, but try resetting all of your minecraft keybinds.

Comment by Douglas F Correa [ 13/Aug/22 ]

Affects 1.19.20. Cursor moves to task bar, 2nd monitor, it's a mess. Please fix with urgency as this is extremely frustrating. Going to look for other bugs that are duplicates of this to funnel attention.

Comment by Zoooooomy2 [ 02/Aug/22 ]

Affecting version 1.19.11.... is this going to be fixed?

Comment by Artyom [ 09/Dec/21 ]

Affects for version 1.18.1

Comment by Joar Huiso Pugosa [ 22/Oct/21 ]

Issue still persists in version 1.17.4006.0

Comment by Esra Schmitz [ 23/Jul/21 ]

this did not fix the problem.

Comment by Nico Gold [ 01/Jul/21 ]

This just started affecting me, when I started playing beta 1.17.20.20 and I reported it, it took me to this, and this bug is still working as of 6/30/2021, and is still working on beta 1.17.20.21, I have dual monitors, so this basically makes Minecraft Unplayable for me

Comment by Matt Hajsiuk [ 07/Jun/21 ]

This is caused by the way they have coded the app, they are using that unified windows framework thing that Microsoft created and to be honest with you I don't think they can fix it. It is easy to reproduce, press 'E',  open a chest, crafting box, or anything that switches to the none 3D world interface, then move the mouse to the bottom or top of the screen. Either the Task bar or the window title will pop up. Then most players will press escape to exit out of the screen, your mouse then has the a different context (Task bar or menu title) and when you click the mouse it will send you to the pause screen as the game thinks you have just clicked the task bar or menu title. It is extremely frustrating and happens all the time. Its bad coding/quality control and I cant believe that this bug has persisted for as long as it has. If you get this, the easy way to fix is use Java edition as it doesn't suffer this problem. There is apps that allow you to import your worlds. 

Comment by Shane Ginsberg [ 26/Feb/21 ]

i tried the CUA Control setting didnt work. i even listed a bug report and not even 2 hours later it was just marked as resolved.  that was about 5 months ago i understand they said it was a duplicated complaint but the fact that they havnt fixed it is outrages. can someone here atleast help me of what else i could do. 

Comment by Casie [ 23/Feb/21 ]

YES YES!! Tysm Mike and Quinn

Comment by Quinn Matthew C. Zaballa [ 21/Feb/21 ]

Mike Zang Had solved my problem, sure this will work for you, just go search Change User Account Controll Settings > Put it on middle (or you can put in never so no one notify you) > and restart, tadda it got fixed THANKS MIKE

Comment by Mike Zang [ 31/Jan/21 ]

I didn't see the older comments, but I was going back to them just now. I found a ton of them said to change UAC notification settings to the default one, so I did and now it's magically fixed! Hope this will help anyone who sees this comment.

Comment by Mike Zang [ 21/Jan/21 ]

I've had the same issue starting on 1.16.201. I use a single monitor and even when I don't have another game running, it still goes out every time. When I click though, it doesn't pause the game but instead clicks on whatever my mouse was over.

Comment by Jack this Out [ 08/Jan/21 ]

It started when I got a new PC a few weeks ago, with a 2060 RTX. I never had it on my old PC, both windows 10. So I can't see how this is a WIN10 problem.

I quick work around is found in how you set up both monitors. In the NVIDIA settings you can position your screens manually. If you put your second monitor in a corner of your main monitor and let them touch just on the corners, the chances are pretty small that your cursor will leave your main monitor. It's a bit painful now to switch between screens, but it's the best I can come up with.

Comment by Collin Potter [ 18/Nov/20 ]

I have this issue with the RTX beta v1.16.200.55. I notice that when looking down, the mouse will open up the task bar while in-game. This is completely game breaking as it often forces me outside of the game when looking down and trying to interact with the game. 

I also tried turning on my second monitor, which is positioned to the left of my main screen where Minecraft runs. When I move my mouse to the left for a while, the mouse moves onto the second monitor. When I click, I am taken out of the game.

It appears that the game does not capture the mouse AT ALL. I am running in full screen mode.

Comment by Andrew Granheim [ 14/Nov/20 ]

I haven't had this issue happen until today when I had another game running. If I close out of the other game, Minecraft goes back to working properly. If I launch a different game with Minecraft still running, the cursor begins to leave the window again. This happens in fullscreen, borderless window and windowed in all combinations between Minecraft and the other game, the "other game" can be all types of games and Minecraft responds the same way by allowing the cursor to leave the game window, making Minecraft unplayable.

Comment by James A Lindula [ 09/Nov/20 ]

*EDIT BECAUSE I FOUND OUT WHY IT WAS HAPPENING

At least for me... I had World of Tanks running on another monitor. After logging out of that for the night, I figured I'd give this cursor lock program another try. Started minecraft, tried playing, and the mouse stays in the window! WOOOO! No idea why this is a thing. I tried changing all the video settings of WoT, nothing seemed to work. Windowed, full screen, borderless window. It all messes up MC. I still have to use cursor lock, but at least it's playable now. I just wish I could play it while WoT was open, cuz my original plan was to play MC during downtime. So that's still a no go.

My friend tested it with Final Fantasy XV and it was also making the mouse cursor going out of the minecraft window.

 

This is happening to me. Mouse curser moves out of the Minecraft game window while playing even if not in a menu or box etc.. nothing I've tried has worked.

Windows 10 ver.

  1. Tried reset (on the app itself)
  2. Tried graphics driver update.
  3. Tried re-install.
  4. Tried every setting in the game itself, from full-screen to windowed etc. Including checking and unchecking all the options for literally everything.
  5. Tried a regedit for edge swipe.
  6. Tried attaching a mouse curser locking program such as Cursor Lock, to no avail because the .exe for minecraft windows 10 apparently doesn't exist? Found "applications" but they all say path not found or I don't have access or something... tried all the admin settings, setting permissions etc. Nothing works. Also I can't seem to find out how to run "user lock" mode? That I just enable a lock to current window whenever I press the hotkey but it doesn't work. Someone said above to "just start User Mode" and there's no such thing...
  7. Tried moving the game window to other monitors etc.. no other game I have has this problem either so it's very confusing and frustrating.
Comment by Cuerzor [ 20/Oct/20 ]

Ok I resolved that by uninstalling and reinstalling an older touchpad driver, and this no longer happens.
So it can be a touchpad compatibility problem.

Comment by Cuerzor [ 17/Oct/20 ]

Well I made a test and found something weird.
After you closed a GUI, like inventory or chests, and return to the game playing, the actual position of cursor will not move for seconds. But after that your cursor will start moving and get out of window again.
I uploaded a video for resolving this issue.

Comment by Cuerzor [ 16/Oct/20 ]

I found that if you move your mouse slowly, this will not happen. But if you move it very fast it will always get out of the window, and after that even you move slowly again, your mouse will never be locked into the window until you open inventory or menu.
Is this useful?

Comment by Vladislav [ 07/Sep/20 ]

Thanks for the tip Darren, but this still didn't work for me or any of the other solutions.

 

It is really a sad thing that Fall Guys, a much smaller team and much smaller game compared to Minecraft can solve this cursor-staying-in-window feature right away but Microsoft and Mojang can't... after so many years...

Comment by DJPJr [ 03/Sep/20 ]

Darren Thank you so much.

Comment by Darren McMillan [ 23/Aug/20 ]

Found the solution via Sea Of Thieves another MS Game: https://support.seaofthieves.com/hc/en-gb/articles/360000425788-Mouse-cursor-not-locking-to-screen

The 3rd option worked for me:

Fix#3

1. Open the run command window (Win + R)

2. Type 'regedit' and press ENTER

3. Navigate to 'Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\'

4. If it doesn't exists, right click the editor background and select Add> Key. Change the name to 'EdgeUI'

5. Navigate to 'EdgeUI' key, right click the editor background and select Add> DWORD (32bit value), change the name to 'AllowEdgeSwipe' and set it to 0

6. Close the Local Group Policy Editor window and boot Sea of Thieves.

Comment by Ehrenburg [ 20/Aug/20 ]

The mouse cursor leaves the game window in windowed mode.

This problem appears, when certain programs/games are running at the same time (or in the background) while playing Minecraft (Bedrock).
This problem also appears under the same conditions/circumstances in Roblox (also from the Microsoft Store).
Minecraft Java Edition does not have this problem btw.

For me, the game Overwatch is the reason of this problem. (I always play MC during the queue time.)
For other people with the same problem, may other programs/games/background processes are the reason of their problem.

The appearing taskbar problem in fullscreen mode can be solved by disabling EdgeUI.
But the mouse/cursor is still leaving the window when i play Minecraft in windowed mode (I only use one monitor).
I already tried a lot of things, but sadly nothing works.

Surprisingly, this problem does not exist for the Minecraft: Education Edition (1.14.31).
But afaik Minecraft: EE is a Win32 program packaged as an UWP app, but the normal MC BE is a full UWP app.

With this information i have good reason to believe, that the UWP app format (also known as Windows Apps) is the reason of this problem and it may have to be addressed to Microsoft too, and not only to Mojang.

Comment by Emrah Yalçın [ 16/Aug/20 ]

i have same issue. it is really annoying and problematic. i die only because of the mistake all the time.

Comment by Roger Fenner [ 05/Aug/20 ]

I have the same issue.

Comment by Vladislav [ 04/Aug/20 ]

Still issue. Unresolved 3 years later.

Comment by QIuguo [ 28/Jul/20 ]

may be a bug from windows uwp(may be caused by some sys file lost) not minecraft

Comment by Stan [ 11/May/20 ]

This issue was reported almost two years ago, and there's STILL no resolution? I made the mistake of buying the Win10 version from the Microsoft App Store and they won't refund my money even though I have expressed to them how this is broken and a known issue. C'mon Mojang, help your customers here!!!

Comment by navynexus [ 10/May/20 ]

This bug happens to me occasionally, but only when I have another game running at once (Overwatch, while set on Borderless Windowed)

Comment by QIuguo [ 09/May/20 ]

I soveld this problem by reinstall windows.it must be a system bug.microsoft should sovel this windows uwp bug.

Comment by Leonid [ 08/May/20 ]

I was helped by the inclusion of User Account Control (UAC). Before that I used the borderless Gaming prog

Comment by Dzonatan [ 08/May/20 ]

when will you solve this problem?

Comment by Stan [ 07/Apr/20 ]

This makes the game unplayable for me. My cursor wandering onto my second monitor and kicking me to the main menu has caused my character to die several times due to the lag of my having to move my mouse back to my primary screen and click "Resume Game". Please fix this. I just got this game and for it to be unplayable due to a completely fixable issue is disappointing, to say the least.

Comment by Tayler Hopko [ 07/Mar/20 ]

This issue makes the game pretty much unplayable for me. I have a secondary monitor to the left of my primary monitor where the game is being run. If I look to the left in game, the mouse appears on my secondary monitor (though the camera in game still turns as expected). If I then left click, attempting to interact with something in the game, instead the game loses focus and pauses, because I clicked on the secondary monitor.

Plenty of other games have an option to lock the cursor to the bounds of the game window.

Comment by Christopher Smith [ 03/Jan/20 ]

If you have one, use a controller or a touch screen device with any of your worlds ported over.

Comment by Cuerzor [ 27/Dec/19 ]

Yes my PC is a laptop and its screen can be touched to play.
Maybe all players met this issue are the same as me?

Comment by Christopher Smith [ 26/Dec/19 ]

It occurs because of the way touch is handled. If you move a cursor with your finger, it properly affects view movement. The finger is basically just the mouse. In versions like 1.13, the bug isn't present. But in the following version, it gets reintroduced.

Hopefully they find out a way to make the cursor like it would be in Java, and disable the cursor when touch is involved, or a way to keep the cursor away from the taskbar.

Comment by Andrew Lee [ 17/Dec/19 ]

I have minecraft on a machine with 3 monitors and after the Bee update it no longer happens as long as I am full screen. All kinds of other bugs (pun partly intended) but not this one.

Comment by Cuerzor [ 17/Dec/19 ]

Tried to disable "Allow Edge Swipe", nothing changed, the mouse still runs away from the game...

Comment by jonah McCullah [ 17/Dec/19 ]

You press Esc and then move the mouse and then hit Esc again.

Comment by Pius Lee [ 16/Dec/19 ]

It appears that this problem is fixed for fullscreen single monitor devices.

Win+R and type gpedit.msc to launch.
Navigate to Computer Configuration/Administrative Templates/Windows Components/Edge UI
Disable "Allow Edge Swipe" (by right clicking and selecting "edit")

Comment by Cuerzor [ 16/Dec/19 ]

I met this on 1.14.0 too. And I found that it doesn't happen at start, after seconds of time it will happen.
My OS is Windows 10 1803.

Comment by Casie [ 01/Dec/19 ]

same it sucks

Comment by gg [ 14/Nov/19 ]

it doesn't work now

 

Comment by Andrew Lee [ 30/Sep/19 ]

@Matthias Kerkhofs been using the script as well, working great as a work around. Thanks a ton. I wish they would just friggin fix this though!

Comment by Do or do not [ 12/Sep/19 ]

@Till Kraemer

You're welcome! 

Comment by Till Kraemer [ 11/Sep/19 ]

I have this problem too, but only when I run Minecraft and Overwatch at the same time. I run both games since I want to play Minecraft when I wait for a match in Overwatch.

@Matthias Kerkhofs, thank you for the Python script, it is very helpful!

Comment by Bit [ 08/Sep/19 ]

i'm also having this issue, initially i thought it was because i was using moonlight but after testing it just seems to be minecraft itself.

Comment by Do or do not [ 02/Sep/19 ]

I wrote a small Python script to keep the mouse away from the edges of the screen.

First (assuming you have Python installed), install some Python modules using the Windows command prompt:

pip install pywin32
pip install keyboard

Then, run the following Python script (press DELETE to stop):

 

import win32api,win32con
import keyboard
ScreenSize_x = win32api.GetSystemMetrics(0)
ScreenSize_y = win32api.GetSystemMetrics(1)
Center_x = ScreenSize_x//2
Center_y = ScreenSize_y//2
while not keyboard.is_pressed('Delete'):
    Mouse_x, Mouse_y = win32api.GetCursorPos()
    if Mouse_x < 50 or Mouse_x > ScreenSize_x - 50 or Mouse_y < 50 or Mouse_y > ScreenSize_y - 50:
        win32api.SetCursorPos((Center_x, Center_y))

Now, whenever the cursor comes close to one of the edges of the screen, its position is set to the screen's center.

 

Comment by Christopher Rodgers [ 08/Aug/19 ]

This happens to me also.  I'm on a clean install of windows 10 home and the mouse leaves the game window.  It is so annoying getting hit by mobs when the mouse is leaving the games window. I kind of makes the game unplayable.  I think when a player right clicks that is when the mouse comes out of the window.

Comment by Cade Kelton [ 06/Aug/19 ]

Yeah, I just noticed this happening to me today and it seems like it has been a problem for quite a long time now. Looking left will drag my cursor off my game and onto my second monitor, then clicking will simply bring up the "escape" menu. I play with a rather low sensitivity and a higher dpi, so i really can't turn at all. I'm really hoping this is fixed soon, as it doesn't seem like a problem that I've run into on any game before, and feels like it should be relatively simple to fix.

Comment by Andrew Lee [ 05/Aug/19 ]

attached a sample, if i play with multiple monitors and look too far to the left or right, (full screen) I now have a cursor outside minecraft AND the cross-hairs inside minecraft. The player's viewport still rotates, but if i click, it clicks wherever the cursor is NOT inside minecraft and brings up a menu as though i clicked outside minecraft.

This happens as well when i disconnect my laptop from my other monitors and play with just my laptop, it looks the same as the other screenshot, where my taskbar will pop up while in full screen mode and then clicking wil not perform the minecraft action, but will click my taskbar buttons.

Comment by Andrew Lee [ 24/Jul/19 ]

I have this issue as well, UAC is enabled, I have tried the registry fix, still not resolved. I am using a LenovoP51 laptop with a docking station and 2 external monitors, any time i am playing minecraft on my center screen and drag the mouse too far left or right to pan my view, if i then click, it will process the cursor click on the other monitor if the mouse cursor ended up on another screen. Even when just using my laptop OFF of the docking station, sometimes, if I am in full screen and look downward, the task bar will pop up and if i click it it will bring up the game menu because my cursor clicked outside of the FULL SCREENED minecraft window

Comment by Leonid [ 10/Jul/19 ]

I solved the problem of enabling User Account Control (UAC). Before that, I used the program Borderless Gaming

Comment by Eric [ 10/Jul/19 ]

Hello, I am having this issue with the Windows 10 App version of the game. I have performed the troubleshooting from Muhammad and Tyson, and still have the issue. 

Comment by Tyson Owen [ 28/Jun/19 ]

If your mouse moves out of the window, then please follow these steps:

1. Check that the Minecraft icon on the taskbar is lit up instead of almost transparent.
If this does not resolve the issue, then look at this step:
2. Make sure that no popup's interrupt gameplay in the background. (This is a follow up to step 3)
3. Check task manager for any background processes. I would not recommend scrolling all the way down. IF YOU DO YOU SEE SYSTEM.EXE. DO NOT CLICK ON IT AND HIT END TASK OR IT WILL CRASH YOUR PC AND GIVE YOU A BSOD (BLUE SCREEN OF DEATH)!
And those are the 3 steps to make sure you stay in the Minecraft window.

Have a good day!

Comment by Muhammad Ibrahim Thufeil [ 27/Jun/19 ]

You just need to change the "EnableLUA" Registry Value to 1. HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion > Policies, and click on System. And You'll Find Enable LUA. Sorry for my bad english

Comment by Jonathan Hanzel [ 18/Jan/19 ]

Wait a second, only some PCs got the fix in 1.8. Others still have the issue.

Comment by Highest [ 18/Jan/19 ]

Not fixed in 1.8.1

Comment by Jonathan Hanzel [ 12/Dec/18 ]

Fixed in 1.8.0

Comment by Jonathan Hanzel [ 26/Nov/18 ]

After recently experimenting with this issue it appears to be a Windows issue rather than a game issue, User Account Control does not resolve the issue in Windows 10 version 1809.

Comment by [Mojang] Mega_Spud (Jay Wells) [ 05/Nov/18 ]

A similar issue has affected users of other games, and it was resolved by adjusting their User Account Control setting in Windows. (A restart may be required for the setting to take effect.)(Reddit)

Comment by Drajon Exeter [ 05/Nov/18 ]

This issue is affecting me too. I am using two monitors and my laptop screen. The issue starts for me after the first time I open the inventory. The mouse will then be able to scroll outside of the game window and interact with other programs and the desktop that are outside the game window though it still controls the game. Very annoying and game-breaking. This issue doesn't occur on Java edition, only on the Bedrock edition. I am running Windows 10 with the latest updates, my graphics card is a standard Intel HD Graphics onboard on my laptop.

Comment by [Mojang] Mega_Spud (Jay Wells) [ 07/Sep/18 ]

Are you able to add any more information about your setup that might help to reproduce the issue? (I have personally used multiple screens for a long time and have never had the issue with the cursor leaving the game unexpectedly.)

Comment by Nori Undr [ 07/Sep/18 ]

It isn't. This version of Minecraft (the java one still works great) is the only game that has this problem that I play and I solved it by the Cursor Lock I mentioned in my previous comment reposted from last year. Still, it would be great if I didn't have to use another program to do such a simple thing to make this playable with multiple monitors.

Comment by [Mojang] Mega_Spud (Jay Wells) [ 04/Sep/18 ]

As per the comments in MCPE-32962 - please make sure that is not a display or taskbar setting, or a driver issue.

Comment by Nori Undr [ 05/Jul/18 ]

So since the duplicate issue I was part of got 'resolved' by directing us to this one instead... Re-commenting my own issues that have not been resolved by the developers.

 

I have 2 monitors so this issue makes it pretty much impossible to play this version of the game. Full Screen does not solve the problem cause it's just an unbordered window. So when I look too far to the side my mouse trails off to my second monitor (or the task bar if I look down just like the OP).

 
I found a program last year that you can download called Cursor Lock which makes the windows 10 version of Minecraft playable.

http://www.snakebytestudios.com/projects/apps/cursor-lock/

Setup User Mode with the Lock set to Window Interior, designate whatever hot keys you wanna use for Locking/Unlocking, save it and then run the 'Start User Mode'. Problem solved.

I hope this information helps anyone else who is frustrated with this issue.

Comment by Brent D. [ 27/Jun/17 ]

I've noted that this issue is rather inconsistent. While I do not experience it myself, my friend has found it very difficult to play because the window fails to reset his mouse's position to the center of the window (Edit for clarity: As with the original poster, the mouse will exit the bottom of the window when looking down). This issue is still evident for him on fullscreen mode, though I am unsure if the original poster of this issue is still experiencing it with fullscreen.

Generated at Sat Jan 11 15:25:15 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.