Hi there.
Even though it works on web browser(Chrome and Cordova browser) , I had an error during Cordova remote debugging on Android. I have no idea why this error occurred.
I looking for where the error occurred, it’s in Phaser 3 TouchManager.js , 189.
The error is below.
Thanks for your time.
●Error
[Intervention] Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.*
●Phaser 3 TouchManager.js , 189
…
startListeners: function ()
{
var _this = this;
var canvas = this.manager.canvas;
var autoFocus = (window && window.focus && this.manager.game.config.autoFocus);
this.onTouchStart = function (event)
{
if (autoFocus)
{
window.focus();
}
if (event.defaultPrevented || !_this.enabled || !_this.manager)
{
// Do nothing if event already handled
return;
}
_this.manager.queueTouchStart(event);
if (_this.capture && event.target === canvas)
{
event.preventDefault(); //////*←Error*
}
};
...(omitted)...
}
…
●The Scene I got the error
export default class Entry extends Phaser.Scene {
constructor() {
super({ key: 'Entry', active: false });
}
preload() {
}
create() {
this.input.on('pointerup', (pointer) => { //////*←Here*
this.scene.start('MainMenu');
});
this.add.image(
this.sys.game.config.width / 2,
this.sys.game.config.height / 2,
"title_back_ground"
);
this.subanimal = this.add.image(600, 600, `animals`, 13).setAngle(-10).setScale(1.8);
this.subanimal1 = this.add.image(-40, 620, `animals`, 8).setAngle(-10).setScale(-1.8, 1.8);
this.subanimal2 = this.add.image(288, -100, `animals`, 11).setAngle(-10).setScale(1.8, -1.8);
this.logo = this.add.image(
this.sys.game.config.width / 2,
360,
"logo"
).setAngle(1);
this.catAndGiraffe = this.add.image(
282,
900,
"title_animal"
);
}
uppdate() {
}