From bef045c9dfd2d78ddef81988d7dab5c634e44b5d Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Fri, 11 Aug 2023 10:57:45 -0700 Subject: [PATCH] Revert PR #2280 (fix for issue #1992) --- src/referencestrip.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); }