diff --git a/src/referencestrip.js b/src/referencestrip.js index 7220da48..c668467c 100644 --- a/src/referencestrip.js +++ b/src/referencestrip.js @@ -321,8 +321,11 @@ function onStripClick( event ) { var page; if ( 'horizontal' === this.scroll ) { - // +4px fix to solve problem with precision on thumbnail selection if there is a lot of them - page = Math.floor(event.position.x / (this.panelWidth + 4)); + // // +4px fix to solve problem with precision on thumbnail selection if there is a lot of them + // page = Math.floor(event.position.x / (this.panelWidth + 4)); + // Note: This reverts PR #2280 (fix for issue #1992) as the issue was + // fixed in ms-reference-strip commit 7d19edff34f7491248064bef1efa69af588c40a0 + page = Math.floor(event.position.x / this.panelWidth); } else { page = Math.floor(event.position.y / this.panelHeight); }