Skip to content

Commit e6f357a

Browse files
Merge branch '10637-sdk-toggle-module-poblem' into 'master'
[FIX][GAMEENGINE] Tooltip not removed on container not visible See merge request codingame/game-engine!289
2 parents a4e7dcc + 64910fd commit e6f357a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

engine/modules/tooltip/src/main/resources/view/tooltip-module/TooltipModule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function getMouseMoveFunc (tooltip, container, module) {
6060
if (tooltip.inside[id]) {
6161
const entity = entityModule.entities.get(id)
6262
const state = entity && getEntityState(entity, module.currentFrame.number)
63-
if (!state) {
63+
if (!state || (entity.container && !entity.container.visible)) {
6464
delete tooltip.inside[id]
6565
} else {
6666
showing.push(id)

playground/misc/misc-3-release-notes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
The CodinGame SDK is regularly updated and improved. This document lets you know what changed in the latest releases.
44

5+
## 3.15.6
6+
7+
### 🐞 Bug fix
8+
9+
- Fixed a bug in the TooltipModule causing tooltips to stay visible permanently.
10+
511
## 3.15.5
612

713
### 🐞 Bug fix

0 commit comments

Comments
 (0)