← THE BLUE STICK

Guides / Fix-it pages

Mouse Leaves the Game Window: How to Fix It

PLAY NOWSolo, free, in your browser

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

  1. The game must ask for it, and it can only ask in response to something you do, normally a click.
  2. Esc releases it. This is built into the browser so that no page can trap your mouse. A game cannot change or disable it.
The pointer lock cycle Three states in a loop: mouse free, click the game to capture, mouse captured, press Esc to release, and back to free. Mouse is free cursor visible, can leave Mouse is captured cursor hidden, stays inside click inside the game press Esc, or switch window After Esc, the game needs a new click before it can capture again.
There are only two states. Most problems are a game that is in the left state when you think it is in the right one.

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

  1. Click inside the game. If the cursor is visible, the mouse is not captured. One click on the game area usually captures it.
  2. Check whether you pressed Esc. In many games Esc opens a menu and also releases the mouse. Close the menu and click again.
  3. 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.
  4. 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.
  5. 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.
  6. Try another browser. Support is good on desktop Chrome, Edge, Firefox and Safari. Small differences remain.

What is going wrong

SymptomCauseFix
Cursor is always visible and leaves freelyThe game never captures the mouseUse fullscreen. Some games are simply built this way
Captured, then lost when a menu opensEsc released itClick the game again
Lost when a notification appearsAnother window took focusSilence notifications
Works on the developer's site, not on a portalThe portal's frame does not allow itPlay on the developer's site
Never works on an iPhoneSafari on iPhone does not support mouse captureUse touch controls
Aim feels different once capturedCaptured mode reports raw movementAdjust 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.

  1. Play in the game's fullscreen mode so the game fills one screen.
  2. Make sure the mouse is captured, not just hidden. If you can push the cursor onto the other screen, it is not captured.
  3. 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.

PLAY NOWSolo, free, in your browser