Skip to content

Commit d5129ee

Browse files
committed
fix instant close/double popup issue on the bottom bar
1 parent a6418e9 commit d5129ee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/renderer/pages/common/StandardGameCover.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ class StandardGameCover extends React.PureComponent<Props> {
150150
}
151151
const { clientX, clientY } = ev;
152152
ev.preventDefault();
153+
// a parent with its own game menu (the browser context bar) would
154+
// otherwise pop a second native menu that closes this one
155+
ev.stopPropagation();
153156
const wind = ambientWind();
154157
dispatch(
155158
actions.openGameContextMenu({

0 commit comments

Comments
 (0)