# movementX and movementY are greatly affected by dev tools chrome

**URL:** <https://forum.babylonjs.com/t/movementx-and-movementy-are-greatly-affected-by-dev-tools-chrome/51763>\
**Category:** Bugs\
**Tags:** pointerevents\
**Created:** [July 3, 2024, 5:44am UTC](https://forum.babylonjs.com/t/movementx-and-movementy-are-greatly-affected-by-dev-tools-chrome/51763 "2024-07-03T05:44:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heathykeithy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/heathykeithy/32/40863_2.png) [@Heathykeithy](https://forum.babylonjs.com/u/Heathykeithy)\
**Post date:** [July 3, 2024, 5:44am UTC](https://forum.babylonjs.com/t/movementx-and-movementy-are-greatly-affected-by-dev-tools-chrome/51763/1 "2024-07-03T05:44:46Z")

</div>

Playground: [https://playground.babylonjs.com/#SV7UIQ](https://playground.babylonjs.com/#SV7UIQ)

The output of pointerInfo.event.movementX and Y is greatly lower (x10) with dev tools open on Chrome , no issue on Firefox.  
I have tried in incognito mode and on a very large screen and got the same or similar results.

Is this a Chrome issue or a Babylon issue?

```auto
    scene.onPointerObservable.add((pointerInfo) => {		
        if(pointerInfo.event.buttons === 2){
            panning = [pointerInfo.event.movementX, pointerInfo.event.movementY]
        }
        else{
            panning = false
        }
    })

```

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [July 3, 2024, 6:27am UTC](https://forum.babylonjs.com/t/movementx-and-movementy-are-greatly-affected-by-dev-tools-chrome/51763/2 "2024-07-03T06:27:34Z")

</div>

Hello and welcome to babylon.js!

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/9/b92bbbe34187086c222c271416f5fb08b986b5de.png)

Source:

> **[MouseEvent: movementX property - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX)**
>
> The movementX read-only property of the MouseEvent interface provides the difference in the X coordinate of the mouse pointer between the given event and the previous mousemove event.
> In other words, the value of the property is computed like this:...

---

<div class="post-metadata">

**Author:** ![Heathykeithy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/heathykeithy/32/40863_2.png) [@Heathykeithy](https://forum.babylonjs.com/u/Heathykeithy)\
**Post date:** [July 3, 2024, 6:39am UTC](https://forum.babylonjs.com/t/movementx-and-movementy-are-greatly-affected-by-dev-tools-chrome/51763/3 "2024-07-03T06:39:24Z")

</div>

Thanks @roland  
I will pivot to a new approach. The example at MDN Web Docs is also effected by dev tools open.  
Much appreciated

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [July 3, 2024, 6:41am UTC](https://forum.babylonjs.com/t/movementx-and-movementy-are-greatly-affected-by-dev-tools-chrome/51763/4 "2024-07-03T06:41:04Z")

</div>

You’re welcome!
