MV Interactive/buttonMode PIXI.Sprite Deadzone

Yo!

Thanks to anisoft and poryg I've managed to configure PIXI.Sprite interactive and buttonMode features. Attached is a script example where the IconSet.png highlights as you hover over it, shines completely as you click it, and reverts to its original darkness upon pointer out.

That works all well and good but there is a deadzone where the Sprite doesn't interact with the mouse at all (by remaining in its original darkness) despite hovering and clicking on the Sprite. I've called the function in the overworld and the menu but the deadzone still persists.

I was wondering if there has been a topic discussing this or if there are any possible solutions to removing this deadzone. Although small it's rather annoying considering it spans the entire screen.

Help! 🙂

JavaScript:
Alias_Graphics_createModeBox = Graphics._createModeBox;
Graphics._createModeBox = function () {
Alias_Graphics_createModeBox.call(this);
this._modeBox.style.pointerEvents = "none";
}

Alias_Graphics_updateVideo = Graphics._updateVideo;
Graphics._updateVideo = function () {
Alias_Graphics_updateVideo.call(this);
this._video.style.pointerEvents = "none";
}

Alias_Graphics_updateUpperCanvas = Graphics._updateUpperCanvas;
Graphics._updateUpperCanvas = function () {
Alias_Graphics_updateUpperCanvas.call(this);
this._upperCanvas.style.pointerEvents = "none";
}

function InteractivePicture () {
    var pictext = new PIXI.Texture.from('img/system/IconSet.png');
    var pic = new PIXI.Sprite(pictext);
    pic.tint = 0x333333;
    pic.interactive = true;
    pic.buttonMode = true;
    SceneManager._scene.addChild(pic);
    var onClick = function () {pic.tint = 0xFFFFFF;};
    var onPointerOver = function () {pic.tint = 0x666666;};
    var onPointerOut = function () {pic.tint = 0x333333;};
    pic.on('pointerdown', onClick);
    pic.on('pointerover', onPointerOver);
    pic.on('pointerout', onPointerOut);
}
Hey @moJoe ^^ I'm having the same issue, did you manage to figure out a solution for it?

Original thread: https://forums.rpgmakerweb.com/threads/interactive-buttonmode-pixi-sprite-deadzone.135555/