From 5d40175e1802cfb5ffc44762457353c5c2f3afd1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:30:59 +0100 Subject: [PATCH 1/2] :floppy_disk: Update Version (#2064) :floppy_disk: Sync Versions > Made via sync_files.yml Co-authored-by: github-actions[bot] --- chart/stirling-pdf/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/stirling-pdf/Chart.yaml b/chart/stirling-pdf/Chart.yaml index 4f13c8ef..01ad871a 100644 --- a/chart/stirling-pdf/Chart.yaml +++ b/chart/stirling-pdf/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -appVersion: 0.30.0 +appVersion: 0.30.1 description: locally hosted web application that allows you to perform various operations on PDF files home: https://github.com/Stirling-Tools/Stirling-PDF From aa00808219ccd4ea36aa32527934cac066f2cd69 Mon Sep 17 00:00:00 2001 From: reecebrowne <74901996+reecebrowne@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:02:00 +0100 Subject: [PATCH 2/2] Removed horizontal scroll logic from multi-tool template (#2065) * Removed horizontal scroll logic from multi-tool template * Remove unused horizontalScroll.js --- .../static/js/multitool/horizontalScroll.js | 39 ------------------- src/main/resources/templates/multi-tool.html | 4 +- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 src/main/resources/static/js/multitool/horizontalScroll.js diff --git a/src/main/resources/static/js/multitool/horizontalScroll.js b/src/main/resources/static/js/multitool/horizontalScroll.js deleted file mode 100644 index 28ec42f5..00000000 --- a/src/main/resources/static/js/multitool/horizontalScroll.js +++ /dev/null @@ -1,39 +0,0 @@ -const scrollDivHorizontally = (id) => { - var scrollDeltaX = 0; // variable to store the accumulated horizontal scroll delta - var scrollDeltaY = 0; // variable to store the accumulated vertical scroll delta - var isScrolling = false; // variable to track if scroll is already in progress - const divToScroll = document.getElementById(id); - - function scrollLoop() { - // Scroll the div horizontally and vertically by a fraction of the accumulated scroll delta - divToScroll.scrollLeft += scrollDeltaX * 0.1; - divToScroll.scrollTop += scrollDeltaY * 0.1; - - // Reduce the accumulated scroll delta by a fraction - scrollDeltaX *= 0.9; - scrollDeltaY *= 0.9; - - // If scroll delta is still significant, continue the scroll loop - if (Math.abs(scrollDeltaX) > 0.1 || Math.abs(scrollDeltaY) > 0.1) { - requestAnimationFrame(scrollLoop); - } else { - isScrolling = false; // Reset scroll in progress flag - } - } - - divToScroll.addEventListener("wheel", function (e) { - e.preventDefault(); // prevent default mousewheel behavior - - // Accumulate the horizontal and vertical scroll delta - scrollDeltaX -= e.deltaX || e.wheelDeltaX || -e.deltaY || -e.wheelDeltaY; - scrollDeltaY -= e.deltaY || e.wheelDeltaY || -e.deltaX || -e.wheelDeltaX; - - // If scroll is not already in progress, start the scroll loop - if (!isScrolling) { - isScrolling = true; - requestAnimationFrame(scrollLoop); - } - }); -}; - -export default scrollDivHorizontally; \ No newline at end of file diff --git a/src/main/resources/templates/multi-tool.html b/src/main/resources/templates/multi-tool.html index 8f7f86b4..c3f78322 100644 --- a/src/main/resources/templates/multi-tool.html +++ b/src/main/resources/templates/multi-tool.html @@ -80,7 +80,6 @@ - + \ No newline at end of file