mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-23 21:56:10 +03:00
parent
b4bb3a4afd
commit
bef045c9df
@ -321,8 +321,11 @@ function onStripClick( event ) {
|
|||||||
var page;
|
var page;
|
||||||
|
|
||||||
if ( 'horizontal' === this.scroll ) {
|
if ( 'horizontal' === this.scroll ) {
|
||||||
// +4px fix to solve problem with precision on thumbnail selection if there is a lot of them
|
// // +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));
|
// 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 {
|
} else {
|
||||||
page = Math.floor(event.position.y / this.panelHeight);
|
page = Math.floor(event.position.y / this.panelHeight);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user