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

Commit 51543b4

Browse files
feat: ensure code zoom is off before swiping
1 parent 5f4a268 commit 51543b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/slides/deckdeckgo-slide-code/deckdeckgo-slide-code.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ export class DeckdeckgoSlideCode implements DeckdeckgoSlide {
3434
beforeSwipe(swipeLeft: boolean): Promise<boolean> {
3535
return new Promise<boolean>(async (resolve) => {
3636
const couldSwipe: boolean = await this.scrollToNext(swipeLeft);
37+
38+
if (couldSwipe) {
39+
await this.zoomCode(false);
40+
}
41+
3742
resolve(couldSwipe);
3843
});
3944
}

0 commit comments

Comments
 (0)