mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Merge pull request #2116 from rvv-bouvet/fix/draw-tiles-without-canvas
fix: avoid crash when setting useCanvas to false
This commit is contained in:
commit
3e5e12722a
@ -2055,7 +2055,7 @@ function drawTiles( tiledImage, lastDrawn ) {
|
|||||||
imageZoom > tiledImage.smoothTileEdgesMinZoom &&
|
imageZoom > tiledImage.smoothTileEdgesMinZoom &&
|
||||||
!tiledImage.iOSDevice &&
|
!tiledImage.iOSDevice &&
|
||||||
tiledImage.getRotation(true) % 360 === 0 && // TODO: support tile edge smoothing with tiled image rotation.
|
tiledImage.getRotation(true) % 360 === 0 && // TODO: support tile edge smoothing with tiled image rotation.
|
||||||
$.supportsCanvas) {
|
$.supportsCanvas && tiledImage.viewer.useCanvas) {
|
||||||
// When zoomed in a lot (>100%) the tile edges are visible.
|
// When zoomed in a lot (>100%) the tile edges are visible.
|
||||||
// So we have to composite them at ~100% and scale them up together.
|
// So we have to composite them at ~100% and scale them up together.
|
||||||
// Note: Disabled on iOS devices per default as it causes a native crash
|
// Note: Disabled on iOS devices per default as it causes a native crash
|
||||||
|
Loading…
Reference in New Issue
Block a user