mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
Merge pull request #534 from filecoin-project/@aminejv/unity-click-bug
fix: clicking on Unity doesn't close the carrousel anymore
This commit is contained in:
commit
eadd1086e7
@ -46,7 +46,11 @@ const UnityFrame = ({ url, unityGameLoader, unityGameConfig }) => {
|
||||
};
|
||||
}, []);
|
||||
|
||||
return <div id="unityContainer" css={STYLES_CONTAINER} />;
|
||||
return (
|
||||
<div css={STYLES_CONTAINER} onClick={(e) => e.stopPropagation()}>
|
||||
<div id="unityContainer" css={STYLES_CONTAINER} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default UnityFrame;
|
||||
|
Loading…
Reference in New Issue
Block a user