From e73b584bb550ff5b0fcd4c5ba95059dcdadf29ac Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 01:01:03 +0200 Subject: [PATCH] try to fix jumpiness of zooming out --- files/assets/js/core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 5d73a6b43..862b47699 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -582,7 +582,9 @@ function handleUploadProgress(e, upload_prog) { } document.getElementById('expandImageModal').addEventListener('show.bs.modal', function () { - location.hash = "modal"; + setTimeout(() => { + location.hash = "modal"; + }, 200); }); document.getElementById('expandImageModal').addEventListener('hide.bs.modal', function () {