Do not show tutorial if screen is closed (#6401)
This commit is contained in:
parent
ee3b655991
commit
47fe3e2219
2 changed files with 9 additions and 4 deletions
|
|
@ -139,8 +139,10 @@ export default function UserListRow({
|
|||
endX: x + w + 20,
|
||||
endY: y + h,
|
||||
};
|
||||
setShowTutorial(true);
|
||||
setItemBounds(bounds);
|
||||
if (viewRef.current) {
|
||||
setShowTutorial(true);
|
||||
setItemBounds(bounds);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,8 +202,11 @@ const ServerItem = ({
|
|||
endX: x + w + 20,
|
||||
endY: y + h,
|
||||
};
|
||||
setShowTutorial(true);
|
||||
setItemBounds(bounds);
|
||||
|
||||
if (viewRef.current) {
|
||||
setShowTutorial(true);
|
||||
setItemBounds(bounds);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue