# How to moving camera with pointer(mouse)?

**URL:** <https://phaser.discourse.group/t/how-to-moving-camera-with-pointer-mouse/4774>\
**Category:** Phaser 3\
**Created:** [January 3, 2020, 10:05pm UTC](https://phaser.discourse.group/t/how-to-moving-camera-with-pointer-mouse/4774 "2020-01-03T22:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fselcukcan](https://avatars.discourse-cdn.com/v4/letter/f/b5a626/32.png) [@fselcukcan](https://phaser.discourse.group/u/fselcukcan)\
**Post date:** [January 4, 2020, 9:05am UTC](https://phaser.discourse.group/t/how-to-moving-camera-with-pointer-mouse/4774/2 "2020-01-04T09:05:44Z")

</div>

> [@rezaa](#):
>
> Hi. All moving the camera examples at the [https://phaser.io/examples](https://phaser.io/examples) are work with cursor keys, but how about pointer?

You may adapt these examples by using [`pointermove` event](https://photonstorm.github.io/phaser3-docs/Phaser.Input.Events.html#event:POINTER_MOVE) instead. Using the pointer object passed to the callback to set the camera scroll or center it from pointer position.

[This examples](https://phaser.discourse.group/t/drag-to-move-camera/3848/2) do what you want.

---

_[View the full topic](https://phaser.discourse.group/t/how-to-moving-camera-with-pointer-mouse/4774)._
