Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flipPrev() does not work when disableFlipByClick is true #29

Open
WilliamIsted opened this issue Jun 11, 2022 · 0 comments
Open

flipPrev() does not work when disableFlipByClick is true #29

WilliamIsted opened this issue Jun 11, 2022 · 0 comments

Comments

@WilliamIsted
Copy link

When disableByFlipClick is true, flipNext() does not function. This appears to be a similar issue to #18.

StPageFlip/src/Flip/Flip.ts

Lines 255 to 260 in ab30ecc

public flipPrev(corner: FlipCorner): void {
this.flip({
x: 10,
y: corner === FlipCorner.TOP ? 1 : this.render.getRect().height - 2,
});
}

This is resolved by replacing line 257 with x: this.render.getRect().left + 10,.

WilliamIsted added a commit to WilliamIsted/StPageFlip that referenced this issue Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant