From e9a0bbc8d9bf8aca02fe1fed8a629f634c726350 Mon Sep 17 00:00:00 2001 From: plougsgaard Date: Fri, 17 Jun 2016 19:09:19 +0200 Subject: [PATCH] Document effect on smoothTileEdgesMinZoom referencing #952. --- src/openseadragon.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index c7f2c966..50521d6a 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -239,6 +239,8 @@ * A zoom percentage ( where 1 is 100% ) of the highest resolution level. * When zoomed in beyond this value alternative compositing will be used to * smooth out the edges between tiles. This will have a performance impact. + * Can be set to Infinity to turn it off. + * Note: This setting is ignored on iOS devices due to a known bug (See {@link https://github.com/openseadragon/openseadragon/issues/952}) * * @property {Boolean} [iOSDevice=?] * True if running on an iOS device, false otherwise. @@ -986,16 +988,16 @@ if (typeof define === 'function' && define.amd) { }; var isIOSDevice = function () { - if (typeof navigator !== 'object') { - return false; - } - var userAgent = navigator.userAgent; - if (typeof userAgent !== 'string') { - return false; - } - return userAgent.indexOf('iPhone') !== -1 || - userAgent.indexOf('iPad') !== -1 || - userAgent.indexOf('iPod') !== -1; + if (typeof navigator !== 'object') { + return false; + } + var userAgent = navigator.userAgent; + if (typeof userAgent !== 'string') { + return false; + } + return userAgent.indexOf('iPhone') !== -1 || + userAgent.indexOf('iPad') !== -1 || + userAgent.indexOf('iPod') !== -1; }; $.extend( $, /** @lends OpenSeadragon */{