# Camera Panning / Zooming mixed up when using iOS

**URL:** <https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894>\
**Category:** Questions\
**Tags:** documentation, gui\
**Created:** [September 3, 2020, 9:16pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894 "2020-09-03T21:16:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vr\_Tech](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vr_tech/32/9983_2.png) [@Vr\_Tech](https://forum.babylonjs.com/u/Vr_Tech)\
**Post date:** [September 3, 2020, 9:16pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/1 "2020-09-03T21:16:51Z")

</div>

From this example

[https://www.babylonjs-playground.com/#SRZRWV#1](https://www.babylonjs-playground.com/#SRZRWV#1)

If you try to pan or zoom sometimes it does all or sometime it’s glitching out.

Any solutions?

---

<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 4, 2020, 10:14am UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/2 "2020-09-04T10:14:18Z")

</div>

I am sorry I can not repro ☹ it seems to work on my iPhone. What device are you using ? @Cedric could you try as well just in case ?

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 4, 2020, 11:40am UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/3 "2020-09-04T11:40:15Z")

</div>

Tested on iPhone11 with Safari without any trouble. Same question as @sebavan for the device/ios/safari version. Can you also try to do a video of what’s happening?

---

<div class="post-metadata">

**Author:** ![Vr\_Tech](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vr_tech/32/9983_2.png) [@Vr\_Tech](https://forum.babylonjs.com/u/Vr_Tech)\
**Post date:** [September 4, 2020, 4:30pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/4 "2020-09-04T16:30:30Z")

</div>

[https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/8/88fc4f4cc913a40a9f53be925c7c5aed4ace4fb6.mp4](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/8/88fc4f4cc913a40a9f53be925c7c5aed4ace4fb6.mp4)
 It seems to have happened when using one finger scrolling then another one coming right up then it jitters like this.

iPhone X  
iOS 13.2.3

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 4, 2020, 4:40pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/5 "2020-09-04T16:40:32Z")

</div>

I get it! I can repro in on my iphone. I _think_ this is reproductible on Android as well.

---

<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 4, 2020, 5:48pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/6 "2020-09-04T17:48:33Z")

</div>

Cool, looks like you are up to fix it @Cedric 🙂 let me know if you need anything.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 8, 2020, 1:20pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/7 "2020-09-08T13:20:32Z")

</div>

I can reproduce the issue when rotating the camera with 1 finger then adding a second one.  
It seems related to this comment:

> <https://github.com/BabylonJS/Babylon.js/blob/1e3d153d295340931e2ae4d3d871d9f4760350c9/src/Cameras/Inputs/BaseCameraPointersInput.ts#L133>

  
@sebavan or @Evgeni_Popov Do you know if this hack can be properly removed ?

---

<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 8, 2020, 1:42pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/8 "2020-09-08T13:42:23Z")

</div>

I have no idea at all, but it is probably super old as I remember it always being here 🙂

You might try without on IoS and see what happens ? but it should not impact android at all which is pretty strange.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [September 8, 2020, 3:00pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/9 "2020-09-08T15:00:13Z")

</div>

That bug seems to be fixed on iOS. But it doesn’t fix the jittering issue. I’m still trying to find a reliable way to reproduce it.

---

<div class="post-metadata">

**Author:** ![Vr\_Tech](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vr_tech/32/9983_2.png) [@Vr\_Tech](https://forum.babylonjs.com/u/Vr_Tech)\
**Post date:** [September 8, 2020, 7:18pm UTC](https://forum.babylonjs.com/t/camera-panning-zooming-mixed-up-when-using-ios/13894/10 "2020-09-08T19:18:57Z")

</div>

I was experimenting with three.js, they seem using active fingers to determine the behaviors. 😕
