diff --git a/dist/jquery.pan.min.js b/dist/jquery.pan.min.js index ab7d8ef..244d05e 100644 --- a/dist/jquery.pan.min.js +++ b/dist/jquery.pan.min.js @@ -1,6 +1,6 @@ /*@license Fullscreen Image Zoom and Pan with Jquery -version 3.0.0 +version 3.0.2 Original version by Samil Hazir (https://github.com/saplumbaga) V.3.0 by JM Alarcon (https://github.com/jmalarcon/) @@ -8,5 +8,5 @@ V.3.0 by JM Alarcon (https://github.com/jmalarcon/) https://github.com/saplumbaga/jquery.pan https://github.com/jmalarcon/jquery.pan */ -jQuery.fn.extend({pan:function(showRotationControls){var panWrapper=document.createElement("div");$(panWrapper).addClass("panWrapper");var panImg=document.createElement("img");$(panImg).addClass("i").css("position","absolute");var loadingImg=document.createElement("div");$(loadingImg).attr("id","loading").addClass("loading"),$(panWrapper).append(loadingImg);var zi=document.createElement("a");$(zi).addClass("controls in"),$(panWrapper).append(zi);var zo=document.createElement("a");if($(zo).addClass("controls out"),$(panWrapper).append(zo),showRotationControls=0!=showRotationControls){var rc=document.createElement("a");$(rc).addClass("controls rc"),$(panWrapper).append(rc);var ra=document.createElement("a");$(ra).addClass("controls ra"),$(panWrapper).append(ra)}keepAngle="boolean"==typeof keepAngle&&keepAngle,$(panImg).data("keepAngle",keepAngle);var close=document.createElement("a");$(close).addClass("controls close"),$(panWrapper).append(close),$(panWrapper).append(panImg),$("body").append(panWrapper);var finalSet=$(this).filter(function(){if($(this).attr("data-big"))return!0;if("IMG"!=this.tagName)return!0;var nW=this.naturalWidth||0,nH=this.naturalHeight||0,w=$(this).outerWidth(),h=$(this).outerHeight();return w