Vr_Tech
September 3, 2020, 9:16pm
1
From this example
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?
sebavan
September 4, 2020, 10:14am
2
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 ?
1 Like
Cedric
September 4, 2020, 11:40am
3
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?
2 Likes
Vr_Tech
September 4, 2020, 4:30pm
4
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
Cedric
September 4, 2020, 4:40pm
5
I get it! I can repro in on my iphone. I think this is reproductible on Android as well.
1 Like
sebavan
September 4, 2020, 5:48pm
6
Cool, looks like you are up to fix it @Cedric let me know if you need anything.
1 Like
Cedric
September 8, 2020, 1:20pm
7
I can reproduce the issue when rotating the camera with 1 finger then adding a second one.
It seems related to this comment:
try {
srcElement.releasePointerCapture(evt.pointerId);
} catch (e) {
//Nothing to do with the error.
}
if (!isTouch) {
this.pointB = null; // Mouse and pen are mono pointer
}
//would be better to use pointers.remove(evt.pointerId) for multitouch gestures,
//but emptying completely pointers collection is required to fix a bug on iPhone :
//when changing orientation while pinching camera,
//one pointer stay pressed forever if we don't release all pointers
//will be ok to put back pointers.remove(evt.pointerId); when iPhone bug corrected
if (engine._badOS) {
this.pointA = this.pointB = null;
} else {
//only remove the impacted pointer in case of multitouch allowing on most
//platforms switching from rotate to zoom and pan seamlessly.
if (this.pointB && this.pointA && this.pointA.pointerId == evt.pointerId) {
@sebavan or
@Evgeni_Popov Do you know if this hack can be properly removed ?
sebavan
September 8, 2020, 1:42pm
8
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.
Cedric
September 8, 2020, 3:00pm
9
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.
Vr_Tech
September 8, 2020, 7:18pm
10
I was experimenting with three.js, they seem using active fingers to determine the behaviors.