mirror of
https://github.com/blasten/turn.js.git
synced 2025-04-06 03:57:41 +08:00
Fixed check for setting e.preventDefault() if on the last page for data.display === 'single'. Was checking for opts.page==data.pages, corrected to check opts.page==data.totalPages
This commit is contained in:
parent
8b0e272147
commit
dc7be695d0
2
turn.js
2
turn.js
@ -987,7 +987,7 @@ turnMethods = {
|
|||||||
if (data.display=='single') {
|
if (data.display=='single') {
|
||||||
|
|
||||||
var left = corner.charAt(1)=='l';
|
var left = corner.charAt(1)=='l';
|
||||||
if ((opts.page==1 && left) || (opts.page==data.pages && !left))
|
if ((opts.page==1 && left) || (opts.page==data.totalPages && !left))
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
else {
|
else {
|
||||||
if (left) {
|
if (left) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user