Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 6d26cc1

Browse files
fix: click on pager and flickering
1 parent 87852af commit 6d26cc1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

studio/src/app/components/editor/app-editor-toolbar/app-editor-toolbar.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,11 @@ export class AppEditorToolbar {
388388
});
389389
}
390390

391+
@Listen('pagerClick', {target: 'document'})
392+
async onPagerClick() {
393+
await this.hideToolbar();
394+
}
395+
391396
@Method()
392397
hideToolbar(): Promise<void> {
393398
return new Promise<void>(async (resolve) => {

studio/src/app/pages/editor/app-editor/app-editor.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,12 @@ export class AppEditor {
363363
return;
364364
}
365365

366+
// Click on the pager
367+
if (!($event.target as HTMLElement).nodeName || ($event.target as HTMLElement).nodeName.toLowerCase() === 'deckgo-deck') {
368+
resolve();
369+
return;
370+
}
371+
366372
const element: HTMLElement = $event.target as HTMLElement;
367373

368374
await this.touchToolbar(element);

0 commit comments

Comments
 (0)