Lines Matching full:zoom
1 /*! lg-zoom - v1.0.4 - 2016-12-20
37 zoom: true, property
43 var Zoom = function(element) { class
49 if (this.core.s.zoom && this.core.doCss()) {
63 Zoom.prototype.init = function() { class
66 …var zoomIcons = '<span id="lg-zoom-in" class="lg-icon"></span><span id="lg-zoom-out" class="lg-ico…
73 _this.core.$outer.addClass('lg-use-left-for-zoom');
75 _this.core.$outer.addClass('lg-use-transition-for-zoom');
81 _this.core.$el.on('onSlideItemLoad.lg.tm.zoom', function(event, index, delay) {
104 * @desc Image zoom
107 * @param {String} scaleVal - Zoom decrement/increment value
109 var zoom = function(scaleVal) { method
115 // Find offset manually to avoid issue after zoom
148 zoom(scale);
188 _this.core.$el.on('onAferAppendSlide.lg.tm.zoom', function(event, index) {
213 // Update zoom on resize and orientationchange
214 $(window).on('resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom', function() {
217 zoom(scale);
220 $('#lg-zoom-out').on('click.lg', function() {
227 $('#lg-zoom-in').on('click.lg', function() {
238 // Reset zoom on slide change
244 // Drag option after zoom
255 // Reset zoom effect
256 Zoom.prototype.resetZoom = function() {
266 Zoom.prototype.zoomSwipe = function() {
313 _this.core.$outer.addClass('lg-zoom-dragging');
347 _this.core.$outer.removeClass('lg-zoom-dragging');
356 Zoom.prototype.zoomDrag = function() {
370 _this.core.$slide.on('mousedown.lg.zoom', function(e) {
397 $(window).on('mousemove.lg.zoom', function(e) {
410 _this.core.$outer.addClass('lg-zoom-dragging');
435 $(window).on('mouseup.lg.zoom', function(e) {
439 _this.core.$outer.removeClass('lg-zoom-dragging');
459 Zoom.prototype.touchendZoom = function(startCoords, endCoords, allowX, allowY) {
512 Zoom.prototype.destroy = function() {
516 // Unbind all events added by lightGallery zoom plugin
517 _this.core.$el.off('.lg.zoom');
518 $(window).off('.lg.zoom');
519 _this.core.$slide.off('.lg.zoom');
520 _this.core.$el.off('.lg.tm.zoom');
526 $.fn.lightGallery.modules.zoom = Zoom;