Fix locating the correct page when calculating the page index
MODIFY
js/views/cfi_navigation_logic.js
js/views/cfi_navigation_logic.js
@@ -381,13 +381,13 @@ var CfiNavigationLogic = function (options) {
if (isVwm) {
var topOffset = firstRectangle.top;
- pageIndex = Math.round(topOffset / frameDimensions.height);
+ pageIndex = Math.floor(topOffset / frameDimensions.height);
} else {
var leftOffset = firstRectangle.left;
if (isRtl) {
leftOffset = (columnFullWidth * (options.paginationInfo ? options.paginationInfo.visibleColumnCount : 1)) - leftOffset;
}
- pageIndex = Math.round(leftOffset / columnFullWidth);
+ pageIndex = Math.floor(leftOffset / columnFullWidth);
}
return pageIndex;

Fix locating the correct page when calculating the page index