In a first-person or mouse-aimed browser game, the cursor is supposed to disappear and stay inside the game. When it slides off the edge instead, onto a second monitor, the taskbar or the browser's tabs, you click something else and the game loses control at the worst moment.
Browsers handle this with a feature called pointer lock. Understanding its two rules fixes most cases. The details below were checked against the browser documentation in November 2026.
How mouse capture works
- The game must ask for it, and it can only ask in response to something you do, normally a click.
- Esc releases it. This is built into the browser so that no page can trap your mouse. A game cannot change or disable it.
After you leave with Esc, the browser requires a fresh click before the game may capture the mouse again. A game cannot quietly take it back on its own.
Fixes, in order
- Click inside the game. If the cursor is visible, the mouse is not captured. One click on the game area usually captures it.
- Check whether you pressed Esc. In many games Esc opens a menu and also releases the mouse. Close the menu and click again.
- Use the game's fullscreen button. In fullscreen there is nothing beside the game for the cursor to reach. This also helps on two monitors.
- Open the game on its own page. A game embedded in another site runs inside a frame, and the frame has to be allowed to capture the mouse. If the developer has their own site, play there.
- Stop anything that takes focus. A notification, a chat pop-up or another program coming to the front ends the capture. Silence them while you play.
- Try another browser. Support is good on desktop Chrome, Edge, Firefox and Safari. Small differences remain.
What is going wrong
| Symptom | Cause | Fix |
|---|---|---|
| Cursor is always visible and leaves freely | The game never captures the mouse | Use fullscreen. Some games are simply built this way |
| Captured, then lost when a menu opens | Esc released it | Click the game again |
| Lost when a notification appears | Another window took focus | Silence notifications |
| Works on the developer's site, not on a portal | The portal's frame does not allow it | Play on the developer's site |
| Never works on an iPhone | Safari on iPhone does not support mouse capture | Use touch controls |
| Aim feels different once captured | Captured mode reports raw movement | Adjust in-game sensitivity |
Two monitors
With two screens side by side, a free cursor that reaches the edge of the game crosses onto the other screen. A click there puts the game in the background.
- Play in the game's fullscreen mode so the game fills one screen.
- Make sure the mouse is captured, not just hidden. If you can push the cursor onto the other screen, it is not captured.
- Keep the game on your primary display. Some browsers behave better there.
A game that does capture the mouse will hold it regardless of how many screens you have. The second monitor only exposes a game that does not.
Games that never capture
Not every game locks the mouse, and some should not. A point-and-click game, a strategy game or a 2D shooter where you aim at a spot on the screen needs a visible cursor. In those games the cursor can always leave the window.
The Blue Stick works this way: you aim by pointing at a spot in the arena, so the cursor stays visible and free. For any game like this, the answers are the browser's own fullscreen or a maximised window. Press F11 on Windows to make the browser fill the screen, which removes the tabs and taskbar the cursor would otherwise land on.
Two last notes. On a laptop trackpad, a captured cursor can feel jumpy, because trackpads apply their own acceleration. A mouse is the better tool for any game that locks the pointer. And if a site ever hides your cursor and you cannot get it back, press Esc. It always works, by design.