Replace lightbox grabbing cursor

This commit is contained in:
2022-04-12 19:43:31 +02:00
parent 7cf64b7f3d
commit 99265cc407
4 changed files with 10 additions and 4 deletions

View File

@@ -285,6 +285,7 @@
fTransY = Math.max(Math.min(fTransY, fTransMaxY), fTransMaxY * -1);
this.$image.css('--scale', fNewZoom);
this.$container.toggleClass('moveable', (fNewZoom > 1));
this.$image.css('--translate-x', fTransX+'px');
this.$image.css('--translate-y', fTransY+'px');
}
@@ -484,6 +485,7 @@
this.$image.css({'--scale': '1', '--translate-x': '0', '--translate-y': '0'});
self.$lightbox.find('.lb-dataContainer').css({width:'200px', height:'30px'});
this.$outerContainer.addClass('animating');
this.$container.removeClass('moveable moving');
oSpot.updateHash('media', self.album[imageNumber].id);
@@ -709,7 +711,7 @@
//ADDED-START
*/
//ADDED-END
this.$outerContainer.removeClass('animating');
this.$lightbox.find('.lb-dataContainer').fadeIn(this.options.resizeDuration, function() {