diff --git a/src/referencestrip.js b/src/referencestrip.js index c5d58c75..d56b8012 100644 --- a/src/referencestrip.js +++ b/src/referencestrip.js @@ -300,7 +300,8 @@ function onStripClick( event ) { var page; if ( 'horizontal' === this.scroll ) { - page = Math.floor(event.position.x / this.panelWidth); + // +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)); } else { page = Math.floor(event.position.y / this.panelHeight); }