mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Compare commits
3 Commits
ebda5a909b
...
60a6a610e0
Author | SHA1 | Date | |
---|---|---|---|
|
60a6a610e0 | ||
|
f91dbdd2c7 | ||
|
d18a4c3fd7 |
@ -5,7 +5,7 @@ OPENSEADRAGON CHANGELOG
|
|||||||
|
|
||||||
* The viewer no longer emits `canvas-key` events for both keydown and keypress events; canvas-key is now just for keydown, and the new `canvas-key-press` is for keypress (#2270 @hrghauri)
|
* The viewer no longer emits `canvas-key` events for both keydown and keypress events; canvas-key is now just for keydown, and the new `canvas-key-press` is for keypress (#2270 @hrghauri)
|
||||||
* You can now specify a priority when calling addHandler, to control when your event handler gets called relative to others (#2273 @Aiosa)
|
* You can now specify a priority when calling addHandler, to control when your event handler gets called relative to others (#2273 @Aiosa)
|
||||||
* Added tileRetryMax and tileRetryDelay options, so the viewer can retry loading failed tiles (#2238 @Ughuuu, @paaddyy)
|
* Added tileRetryMax and tileRetryDelay options, so the viewer can retry loading failed tiles (#2238 @Ughuuu @paaddyy, #2334 @Ughuuu @Titan21)
|
||||||
* All of the viewers keyboard handling is now in response to keydown events (it used to be split between keydown and keypress) (#2291 @MohitBansal321)
|
* All of the viewers keyboard handling is now in response to keydown events (it used to be split between keydown and keypress) (#2291 @MohitBansal321)
|
||||||
* Added `canvas-focus` and `canvas-blur` events to Viewer (#2301 @MohitBansal321)
|
* Added `canvas-focus` and `canvas-blur` events to Viewer (#2301 @MohitBansal321)
|
||||||
* You can now more easily add custom buttons to the viewer (#2306 @MohitBansal321)
|
* You can now more easily add custom buttons to the viewer (#2306 @MohitBansal321)
|
||||||
|
@ -62,7 +62,7 @@ $.ImageJob = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Data object which will contain downloaded image data.
|
* Data object which will contain downloaded image data.
|
||||||
* @member {Image|*} image data object, by default an Image object (depends on TileSource)
|
* @member {Image|*} data data object, by default an Image object (depends on TileSource)
|
||||||
* @memberof OpenSeadragon.ImageJob#
|
* @memberof OpenSeadragon.ImageJob#
|
||||||
*/
|
*/
|
||||||
this.data = null;
|
this.data = null;
|
||||||
@ -234,7 +234,7 @@ $.ImageLoader.prototype = {
|
|||||||
* @param callback - Called once cleanup is finished.
|
* @param callback - Called once cleanup is finished.
|
||||||
*/
|
*/
|
||||||
function completeJob(loader, job, callback) {
|
function completeJob(loader, job, callback) {
|
||||||
if (job.errorMsg !== '' && (job.image === null || job.image === undefined) && job.tries < 1 + loader.tileRetryMax) {
|
if (job.errorMsg !== '' && (job.data === null || job.data === undefined) && job.tries < 1 + loader.tileRetryMax) {
|
||||||
loader.failedTiles.push(job);
|
loader.failedTiles.push(job);
|
||||||
}
|
}
|
||||||
var nextJob;
|
var nextJob;
|
||||||
|
@ -1621,6 +1621,8 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
tile.loading = false;
|
tile.loading = false;
|
||||||
tile.exists = false;
|
tile.exists = false;
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
tile.exists = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( time < this.lastResetTime ) {
|
if ( time < this.lastResetTime ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user