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

Commit 9c1bb70

Browse files
Merge pull request #986 from deckgo/remove-auto-select-slide
fix: remove auto select slide
2 parents 6e79748 + 40a3fbd commit 9c1bb70

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -689,29 +689,13 @@ export class AppEditor {
689689
private async onSlideChange() {
690690
await this.deckEventsHandler.toggleSlideEditable(!this.fullscreen || !this.presenting);
691691

692-
if (!this.deckRef) {
693-
return;
694-
}
695-
696-
const index: number = await this.deckRef.getActiveIndex();
692+
const index: number = await this.deckRef?.getActiveIndex();
697693

698694
if (index < 0 || this.activeIndex === index) {
699695
return;
700696
}
701697

702698
this.activeIndex = index;
703-
704-
const slideElement: HTMLElement = this.deckRef.querySelector('.deckgo-slide-container:nth-child(' + (index + 1) + ')');
705-
706-
if (!slideElement) {
707-
return;
708-
}
709-
710-
if (!this.actionsEditorRef) {
711-
return;
712-
}
713-
714-
await this.actionsEditorRef.touch(slideElement, false);
715699
}
716700

717701
render() {

0 commit comments

Comments
 (0)