# Phone touchmove scene.simulatePointerMove() bug

**URL:** <https://forum.babylonjs.com/t/phone-touchmove-scene-simulatepointermove-bug/52658>\
**Category:** Bugs\
**Created:** [August 9, 2024, 2:51am UTC](https://forum.babylonjs.com/t/phone-touchmove-scene-simulatepointermove-bug/52658 "2024-08-09T02:51:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![274199875](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/274199875/32/39357_2.png) [@274199875](https://forum.babylonjs.com/u/274199875)\
**Post date:** [August 9, 2024, 2:51am UTC](https://forum.babylonjs.com/t/phone-touchmove-scene-simulatepointermove-bug/52658/1 "2024-08-09T02:51:10Z")

</div>

phone touchmove scene.simulatePointerMove()  
demo url

> **[Babylon.js Playground](https://playground.babylonjs.com/#LD3H6G)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/0/a085b336c2b826434ac67260f0d8c9af4b476f79.png)

browser → F12 → Developer Mode

phone size 561 \* 661

---

<div class="post-metadata">

**Author:** ![274199875](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/274199875/32/39357_2.png) [@274199875](https://forum.babylonjs.com/u/274199875)\
**Post date:** [August 9, 2024, 2:53am UTC](https://forum.babylonjs.com/t/phone-touchmove-scene-simulatepointermove-bug/52658/2 "2024-08-09T02:53:33Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/7/875df7a9eeda5b160289b04a6df04f73cf2148c0.png)

red area

demo.addEventListener(“touchstart”  
demo.addEventListener(“touchmove”  
demo.addEventListener(“touchend”

scene.simulatePointerDown();  
scene.simulatePointerMove();  
scene.simulatePointerUp();

no effect

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 9, 2024, 2:13pm UTC](https://forum.babylonjs.com/t/phone-touchmove-scene-simulatepointermove-bug/52658/3 "2024-08-09T14:13:44Z")

</div>

I did answer something similar lately, you didn’t really integrate the changes I have made to that PR.

I am not too sure why you want to emulate pointer events on a full-screen layout, but let’s say there is a use-case that needs that.  
If you emulate pointer events, register pointer events - touchstart = pointerdown, touchmove = pointermove, touchend = pointerup  
Make sure to pass the event to simulatePointer???

Then clicking on the GUI elements will work.  
[phone touchmove scene.simulatePointerMove() bug | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#LD3H6G#1)

Also, make sure your layout is 100% on the canvas and not 100% on the screen, as this can be confusing (and wrong)

---

<div class="post-metadata">

**Author:** ![274199875](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/274199875/32/39357_2.png) [@274199875](https://forum.babylonjs.com/u/274199875)\
**Post date:** [August 9, 2024, 11:56pm UTC](https://forum.babylonjs.com/t/phone-touchmove-scene-simulatepointermove-bug/52658/4 "2024-08-09T23:56:54Z")

</div>

Thank you
