correct logic for call to _updateViewport

This commit is contained in:
thejohnhoffer 2016-11-04 09:26:34 -04:00
parent 9548ad6a27
commit 2915ee09c5

View File

@ -292,7 +292,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
* Draws the TiledImage to its Drawer.
*/
draw: function() {
if (this.opacity !== 0 && !this._preload) {
if (!(this.opacity === 0 && !this._preload)) {
this._midDraw = true;
this._updateViewport();
this._midDraw = false;