Revert PR #2280 (fix for issue #1992)

This commit is contained in:
Mark Salsbery 2023-08-11 10:57:45 -07:00
parent b4bb3a4afd
commit bef045c9df

View File

@ -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);
}