Skip to content

Commit

Permalink
Revert PR #2280 (fix for issue #1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
msalsbery committed Aug 11, 2023
1 parent b4bb3a4 commit bef045c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/referencestrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit bef045c

Please sign in to comment.