mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +03:00
Check that zoom reference point is valid before using it
This commit is contained in:
parent
d88ce4a970
commit
fd85ee4f4e
@ -551,7 +551,9 @@ $.Viewport.prototype = {
|
|||||||
*/
|
*/
|
||||||
zoomTo: function( zoom, refPoint, immediately ) {
|
zoomTo: function( zoom, refPoint, immediately ) {
|
||||||
|
|
||||||
this.zoomPoint = refPoint instanceof $.Point ?
|
this.zoomPoint = refPoint instanceof $.Point &&
|
||||||
|
!isNaN(refPoint.x) &&
|
||||||
|
!isNaN(refPoint.y) ?
|
||||||
refPoint :
|
refPoint :
|
||||||
null;
|
null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user