mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-06 07:13:31 +03:00
fix problem with click precision on ReferenceStrip
temporary fix for #1992 . Just adding 4px which works in all use cases.
This commit is contained in:
parent
6f7e8c7a49
commit
8550b4fea5
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue