This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/deck/deckdeckgo-deck Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export class DeckdeckgoDeck {
161161 const couldSwipeRight : boolean = ! deltaX . swipeLeft && this . activeIndex > 0 ;
162162
163163 if ( couldSwipeLeft || couldSwipeRight ) {
164- const windowWidth : number = window . outerWidth ;
164+ const windowWidth : number = window . innerWidth ;
165165 if ( deltaX . deltaX > ( windowWidth / this . autoSwipeRatio ) ) {
166166 this . deckTranslateX = deltaX . swipeLeft ? this . deckTranslateX - windowWidth : this . deckTranslateX + windowWidth ;
167167
@@ -289,7 +289,7 @@ export class DeckdeckgoDeck {
289289 const deltaX : DeltaX = {
290290 slider : slider ,
291291 swipeLeft : swipeLeft ,
292- deltaX : window . outerWidth
292+ deltaX : window . innerWidth
293293 } ;
294294
295295 await this . swipeSlide ( deltaX ) ;
@@ -334,7 +334,7 @@ export class DeckdeckgoDeck {
334334 return ;
335335 }
336336
337- this . deckTranslateX = index * - 1 * window . outerWidth ;
337+ this . deckTranslateX = index * - 1 * window . innerWidth ;
338338 this . activeIndex = index ;
339339
340340 await this . lazyLoadImages ( this . activeIndex ) ;
You can’t perform that action at this time.
0 commit comments