Skip to content

Commit

Permalink
Fix flipPrev() if disableFlipByClick is true
Browse files Browse the repository at this point in the history
- Resolves issue Nodlik#29
  • Loading branch information
WilliamIsted committed Jun 11, 2022
1 parent ab30ecc commit 645bb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Flip/Flip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down

0 comments on commit 645bb48

Please sign in to comment.