# Camera control won't let go on PointerUp (safari specific)

**URL:** <https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227>\
**Category:** Bugs\
**Created:** [August 20, 2021, 10:10am UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227 "2021-08-20T10:10:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/faber/32/15884_2.png) [@Faber](https://forum.babylonjs.com/u/Faber)\
**Post date:** [August 20, 2021, 10:10am UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227/1 "2021-08-20T10:10:00Z")

</div>

This is a follow up on [this discussion](https://forum.babylonjs.com/t/scene-freezes-completely-upon-mouse-button-up-desktop-safari-only-typeerror/21403).

We had the same problem (the scene froze on mouse button up, only on Safari). So we updated our version to the latest alpha, since the fix got merged in June on [PR #10458](https://github.com/BabylonJS/Babylon.js/pull/10458)

However this fix doesn’t entirely fix the issue, there is a new problem :

- **Expected** :  
Camera with attached control follows the mouse movements ONLY while the left mouse button is being pressed down
- **Happening** :  
Camera with attached control follow the mouse movements while the left mouse button is being pressed down, AND after it has been released.  
**/!\ PLEASE NOTE** that this issue only happens on Safari browser, and does not happen 100% of the time. Keep trying to move the camera with several clicks for 10 seconds and you should see it happen.

The issue is reproducable on the very void playground here : [https://playground.babylonjs.com/](https://playground.babylonjs.com/)  
It seems that the **`PointerUp`** event is not reliably fired.

---

<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 20, 2021, 12:04pm UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227/2 "2021-08-20T12:04:37Z")

</div>

Pinging @PolygonalSun

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [August 20, 2021, 7:54pm UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227/3 "2021-08-20T19:54:44Z")

</div>

Hey @Faber, I can take a look at this.

---

<div class="post-metadata">

**Author:** ![Faber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/faber/32/15884_2.png) [@Faber](https://forum.babylonjs.com/u/Faber)\
**Post date:** [August 21, 2021, 3:04am UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227/4 "2021-08-21T03:04:28Z")

</div>

Nice ! I have no idea where to begin with. Since I noticed you alread took a shot at a related issue in the past, I thought I should bring it up on the forum. 🙂

---

<div class="post-metadata">

**Author:** ![karbous](https://avatars.discourse-cdn.com/v4/letter/k/97f17d/32.png) [@karbous](https://forum.babylonjs.com/u/karbous)\
**Post date:** [September 19, 2023, 2:02pm UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227/5 "2023-09-19T14:02:07Z")

</div>

Hi, this issue is still valid (version 6.21.0), anyone has a tip how to solve this?  
By the way, the stable repro is pointer up while pointer moving. The pointer up event is then fired when you stop the pointer move.  
Also, the pointer up event is not fired while over an GUI element, even if the element’s `isPointerBlocker` and `isHitTestVisible` is set to `false`.  
Easy way to reproduce is here: [Simple GUI in fullscreen mode | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#XCPP9Y#19632)

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [September 19, 2023, 3:46pm UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227/6 "2023-09-19T15:46:46Z")

</div>

cc @PolygonalSun

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 19, 2023, 9:31pm UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227/7 "2023-09-19T21:31:27Z")

</div>

Assigned @PolygonalSun on September 19, 2023, 9:31pm UTC



---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [September 28, 2023, 10:00pm UTC](https://forum.babylonjs.com/t/camera-control-wont-let-go-on-pointerup-safari-specific/23227/8 "2023-09-28T22:00:45Z")

</div>

Hey @karbous,

So, I’m not quite sure that I understand how to repro this. On the provided PG, my understanding is that I need to release the left mouse button, while the mouse is moving, and the pointerup event will fire when the cursor stops. Also, if the mouse button is released over a GUI element, the up event will not fire. Is that correct? If so, I am unable to repro this on 6.22.0.
