JezK
Edit File: compareImages.min.js
jQuery.each(["frontend/element_ready/wd_compare_img.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.compareImages()})}),woodmartThemeModule.compareImages=function(){function e(e,t){var n=t.getBoundingClientRect(),o=e.clientX-n.left;o<0&&(o=0),o>n.width&&(o=n.width);var d=(o/n.width*100).toFixed(3);t.style.setProperty("--wd-compare-handle-pos",`${d}%`)}document.querySelectorAll(".wd-compare-img").forEach(function(t){!function(t){var n=!1;t.addEventListener("mousedown",function(o){n=!0,e(o,t)}),document.addEventListener("mouseup",function(){n=!1}),t.addEventListener("mousemove",function(o){n&&e(o,t)}),t.addEventListener("touchstart",function(o){n=!0,e(o.touches[0],t)},{passive:!0}),document.addEventListener("touchend",function(){n=!1},{passive:!0}),t.addEventListener("touchmove",function(o){n&&e(o.touches[0],t)},{passive:!0})}(t)})},window.addEventListener("load",function(){woodmartThemeModule.compareImages()});