From 484ae63db13c6bf0d267fa8938c222fca0034348 Mon Sep 17 00:00:00 2001 From: Toni Munder Date: Mon, 14 Sep 2015 20:45:52 -0700 Subject: [PATCH] Made some changes to flickering code --- src/tiledimage.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 9e4942cc..b87bd414 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -130,6 +130,7 @@ $.TiledImage = function( options ) { lastResetTime: 0, // Last time for which the tiledImage was reset. _midDraw: false, // Is the tiledImage currently updating the viewport? _needsDraw: true, // Does the tiledImage need to update the viewport again? + _hasOpaqueTile: false, // Do we have even one fully opaque tile? //configurable settings springStiffness: $.DEFAULT_SETTINGS.springStiffness, @@ -675,15 +676,9 @@ function updateViewport( tiledImage ) { viewportBounds.y -= tiledImage._ySpring.current.value; // Reset tile's internal drawn state - var _hasOpaqueTile; - while ( tiledImage.lastDrawn.length > 0 ) { tile = tiledImage.lastDrawn.pop(); tile.beingDrawn = false; - - if (tile.beingDrawn === false) { - _hasOpaqueTile = false; - } } //Change bounds for rotation