mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
* Fixed an issue with TiledImage setPosition/setWidth/setHeight not reliably triggering a redraw (#720)
This commit is contained in:
parent
fb8e19b50d
commit
671379e1c3
@ -33,6 +33,7 @@ OPENSEADRAGON CHANGELOG
|
|||||||
* Fixed overlays position (use rounding instead of flooring and ceiling) (#741)
|
* Fixed overlays position (use rounding instead of flooring and ceiling) (#741)
|
||||||
* Fixed issue with including overlays in your tileSources array when creating/opening in the viewer (#745)
|
* Fixed issue with including overlays in your tileSources array when creating/opening in the viewer (#745)
|
||||||
* Fixed issue in iOS devices that would cause all touch events to fail after a Multitasking Gesture was triggered (#744)
|
* Fixed issue in iOS devices that would cause all touch events to fail after a Multitasking Gesture was triggered (#744)
|
||||||
|
* Fixed an issue with TiledImage setPosition/setWidth/setHeight not reliably triggering a redraw (#720)
|
||||||
|
|
||||||
2.0.0:
|
2.0.0:
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ $.TiledImage = function( options ) {
|
|||||||
lastResetTime: 0, // Last time for which the tiledImage was reset.
|
lastResetTime: 0, // Last time for which the tiledImage was reset.
|
||||||
_midDraw: false, // Is the tiledImage currently updating the viewport?
|
_midDraw: false, // Is the tiledImage currently updating the viewport?
|
||||||
_needsDraw: true, // Does the tiledImage need to update the viewport again?
|
_needsDraw: true, // Does the tiledImage need to update the viewport again?
|
||||||
_hasOpaqueTile: false, // Do we have even one fully opaque tile?
|
_hasOpaqueTile: false, // Do we have even one fully opaque tile?
|
||||||
|
|
||||||
//configurable settings
|
//configurable settings
|
||||||
springStiffness: $.DEFAULT_SETTINGS.springStiffness,
|
springStiffness: $.DEFAULT_SETTINGS.springStiffness,
|
||||||
@ -502,6 +502,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
|
|
||||||
this._xSpring.resetTo(position.x);
|
this._xSpring.resetTo(position.x);
|
||||||
this._ySpring.resetTo(position.y);
|
this._ySpring.resetTo(position.y);
|
||||||
|
this._needsDraw = true;
|
||||||
} else {
|
} else {
|
||||||
if (sameTarget) {
|
if (sameTarget) {
|
||||||
return;
|
return;
|
||||||
@ -509,6 +510,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
|
|
||||||
this._xSpring.springTo(position.x);
|
this._xSpring.springTo(position.x);
|
||||||
this._ySpring.springTo(position.y);
|
this._ySpring.springTo(position.y);
|
||||||
|
this._needsDraw = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sameTarget) {
|
if (!sameTarget) {
|
||||||
@ -591,6 +593,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
|
|
||||||
this._scaleSpring.resetTo(scale);
|
this._scaleSpring.resetTo(scale);
|
||||||
this._updateForScale();
|
this._updateForScale();
|
||||||
|
this._needsDraw = true;
|
||||||
} else {
|
} else {
|
||||||
if (sameTarget) {
|
if (sameTarget) {
|
||||||
return;
|
return;
|
||||||
@ -598,6 +601,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
|
|
||||||
this._scaleSpring.springTo(scale);
|
this._scaleSpring.springTo(scale);
|
||||||
this._updateForScale();
|
this._updateForScale();
|
||||||
|
this._needsDraw = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sameTarget) {
|
if (!sameTarget) {
|
||||||
|
Loading…
Reference in New Issue
Block a user