I have a strange behaviour even with fresh setup project (just the plane + white box) on my iphone 5s (ios 10.3.3)
and my iphone 6 (ios 11.0.3) and only in the portrait mode —
on touch each time there is a short black flicker. This doesn’t happen with the showcase PlayCanvas projects on
the main site, so I assume it’s something new and related to an update on the coding/ or embeding html site?
Another one:
Checking on ‘Flappy bird’ -
Problem exist on the first screen, but not once the game is running
++
Launching it fullscreen from the Main Samples page the blackscreen only flashes in portrait mode
Launching the smaller version in the tutorials section shows the black screen in portrait & landscape mode
(coming from the portrait mode)
– as soon as the top and down ios menu bar (to navigate and share in safari) appears by scrolling the website up and down the problem is gone but appears again without the browser navigation
TouchInput.prototype.onTouchStartEndCancel = function(event) {
event.event.preventDefault();
// We only care about the first touch for camera rotation. As the user touches the screen,
// we stored the current touch position
var touches = event.touches;
if (touches.length == 1) {
this.lastTouchPoint.set(touches[0].x, touches[0].y);
} else if (touches.length == 2) {
// If there are 2 touches on the screen, then set the pinch distance
this.lastPinchDistance = this.getPinchDistance(touches[0], touches[1]);
this.calcMidPoint(touches[0], touches[1], this.lastPinchMidPoint);
}