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

Commit 433e4f4

Browse files
fix: don't track mouse movement if deck is triggered to be blocked
1 parent 0705cd8 commit 433e4f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webcomponents/core/src/components/deck/deckdeckgo-deck/deckdeckgo-deck.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,11 @@ export class DeckdeckgoDeck {
660660
@Method()
661661
async blockSlide(block: boolean) {
662662
this.block = block;
663+
664+
// If we want to block, then we reset then previous start position as we don't want to start the slide to scroll when the blocking will be resolved
665+
if (this.block) {
666+
this.startX = null;
667+
}
663668
}
664669

665670
/* END: Manual sliding */

0 commit comments

Comments
 (0)