Skip to content

Commit

Permalink
Merge pull request #16827 from johndoknjas/analysis-player-dialog
Browse files Browse the repository at this point in the history
Analysis player dialog
  • Loading branch information
ornicar authored Jan 21, 2025
2 parents 2ab6257 + 5372271 commit e0d7458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/common/src/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class DialogWrapper implements Dialog {

const justThen = Date.now();
const cancelOnInterval = (e: PointerEvent) => {
if (Date.now() - justThen < 200) return;
if (Date.now() - justThen < 200 || !dialog.isConnected) return;
const r = dialog.getBoundingClientRect();
if (e.clientX < r.left || e.clientX > r.right || e.clientY < r.top || e.clientY > r.bottom)
this.close('cancel');
Expand Down

0 comments on commit e0d7458

Please sign in to comment.