mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
dont compute NaN for opacity because FF doesnt like that, per macreery's branch, thanks
This commit is contained in:
parent
27d2898818
commit
d8a3ccf5e8
@ -6,7 +6,7 @@
|
||||
PROJECT: openseadragon
|
||||
BUILD_MAJOR: 0
|
||||
BUILD_MINOR: 9
|
||||
BUILD_ID: 117
|
||||
BUILD_ID: 118
|
||||
BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||
VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*globals OpenSeadragon*/
|
||||
|
||||
/**
|
||||
* @version OpenSeadragon 0.9.117
|
||||
* @version OpenSeadragon 0.9.118
|
||||
*
|
||||
* @fileOverview
|
||||
* <h2>
|
||||
@ -9309,7 +9309,7 @@ function blendTile( drawer, tile, x, y, level, levelOpacity, currentTime ){
|
||||
}
|
||||
|
||||
deltaTime = currentTime - tile.blendStart;
|
||||
opacity = Math.min( 1, deltaTime / blendTimeMillis );
|
||||
opacity = Math.min( 1, deltaTime / ( blendTimeMillis || 1 ) );
|
||||
|
||||
if ( drawer.alwaysBlend ) {
|
||||
opacity *= levelOpacity;
|
||||
|
@ -784,7 +784,7 @@ function blendTile( drawer, tile, x, y, level, levelOpacity, currentTime ){
|
||||
}
|
||||
|
||||
deltaTime = currentTime - tile.blendStart;
|
||||
opacity = Math.min( 1, deltaTime / blendTimeMillis );
|
||||
opacity = Math.min( 1, deltaTime / ( blendTimeMillis || 1 ) );
|
||||
|
||||
if ( drawer.alwaysBlend ) {
|
||||
opacity *= levelOpacity;
|
||||
|
Loading…
Reference in New Issue
Block a user