Fix disparition du tooltip dans les TMR

Passage den eventMode static permet de ne pas faire disparaître le
tooltip.
This commit is contained in:
Vincent Vandemeulebrouck 2023-10-24 22:44:51 +02:00
parent e089bdf9c8
commit 54158ee10d

View File

@ -81,7 +81,7 @@ export class PixiTMR {
sprite.tooltip = new PIXI.Text('', tooltipStyle);
sprite.tooltip.zIndex = tmrTokenZIndex.tooltip;
sprite.isOver = false;
sprite.eventMode = 'dynamic'; // PIXI 7 To be checked
sprite.eventMode = 'static';
sprite
.on('pointermove', event => this.onPointerMove(event, sprite, computeTooltip))
.on('pointerdown', event => this.onClickBackground(event))