# Fire pointerout when the pointer leaves the canvas

**URL:** <https://phaser.discourse.group/t/fire-pointerout-when-the-pointer-leaves-the-canvas/10924>\
**Category:** Phaser 3\
**Created:** [December 29, 2021, 9:52pm UTC](https://phaser.discourse.group/t/fire-pointerout-when-the-pointer-leaves-the-canvas/10924 "2021-12-29T21:52:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinde](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/robinde/32/6366_2.png) [@robinde](https://phaser.discourse.group/u/robinde)\
**Post date:** [December 29, 2021, 9:52pm UTC](https://phaser.discourse.group/t/fire-pointerout-when-the-pointer-leaves-the-canvas/10924/1 "2021-12-29T21:52:47Z")

</div>

I have a “pointerover” and “pointerout” event on my game object and would like “pointerout” to fire when the pointer leaves the canvas (or passes over an element in the DOM container).

Is this possible and what would be the best solution?

Edit: I found `this.input.events.on('gameout', ...);` but maybe there is a better way? This method also doesn’t seem to work quite correctly, no “pointerover” is triggered when returning to the canvas, only after “pointerout” is triggered does it do so again.
