From e279e4be87d9c03c9addb7992f02bced4c666cf2 Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Wed, 21 Jul 2021 11:26:38 +0530 Subject: [PATCH] fix: missing zoom-animation for Draw Conflicts: loleaflet/src/layer/tile/TilesSection.ts Signed-off-by: Dennis Francis Change-Id: I260a5bf08751087edad9abfeaa2a68c4c7ac914e (cherry picked from commit bae749a85a3b22c8cdc3da052aeb2298e6fc37ec) --- loleaflet/src/layer/tile/TilesSection.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/loleaflet/src/layer/tile/TilesSection.ts b/loleaflet/src/layer/tile/TilesSection.ts index dd244efeb..90295bb58 100644 --- a/loleaflet/src/layer/tile/TilesSection.ts +++ b/loleaflet/src/layer/tile/TilesSection.ts @@ -181,13 +181,15 @@ class TilesSection { } if (app.file.fileBasedView) { - var tileSize = this.sectionProperties.docLayer._tileSize; + var tileSize = this.sectionProperties.docLayer._tileSize; var ratio = tileSize / this.sectionProperties.docLayer._tileHeightTwips; var partHeightPixels = Math.round((this.sectionProperties.docLayer._partHeightTwips + this.sectionProperties.docLayer._spaceBetweenParts) * ratio); offset.y = tile.coords.part * partHeightPixels + tile.coords.y - this.documentTopLeft[1]; + extendedOffset.y = offset.y + halfExtraSize; this.context.drawImage(tile.el, offset.x, offset.y, tileSize, tileSize); + this.oscCtxs[0].drawImage(tile.el, extendedOffset.x, extendedOffset.y, tileSize, tileSize); } else { this.context.drawImage(tile.el, offset.x, offset.y, ctx.tileSize.x, ctx.tileSize.y); @@ -408,4 +410,4 @@ class TilesSection { L.getNewTilesSection = function () { return new TilesSection(); -} \ No newline at end of file +}