From 17411c1f19761941e47ded4f0f85d7f89f1f51fe Mon Sep 17 00:00:00 2001 From: Franzz Date: Fri, 4 Dec 2020 21:13:18 +0100 Subject: [PATCH] Remove rotation fix (fixed in browser) --- script/lightbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/lightbox.js b/script/lightbox.js index 68c58f6..76c1797 100644 --- a/script/lightbox.js +++ b/script/lightbox.js @@ -452,7 +452,7 @@ $preloader = $(preloader); //ADDED-START - if(Math.abs(self.album[imageNumber].orientation) == 90) { + if(Math.abs(self.album[imageNumber].orientation) == 90 && preloader.width > preloader.height) { var sWidth = preloader.width; preloader.width = preloader.height; preloader.height = sWidth;