From 645bb48a1505afcbc51a250fce07fd9719549341 Mon Sep 17 00:00:00 2001 From: William Isted Date: Sat, 11 Jun 2022 06:37:43 +0100 Subject: [PATCH] Fix `flipPrev()` if `disableFlipByClick` is `true` - Resolves issue #29 --- src/Flip/Flip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Flip/Flip.ts b/src/Flip/Flip.ts index d918d65..bb3b307 100644 --- a/src/Flip/Flip.ts +++ b/src/Flip/Flip.ts @@ -254,7 +254,7 @@ export class Flip { */ public flipPrev(corner: FlipCorner): void { this.flip({ - x: 10, + x: this.render.getRect().left + 10, y: corner === FlipCorner.TOP ? 1 : this.render.getRect().height - 2, }); }