/** * RocketRez Automatic Scroll Prevention * * Prevents the RocketRez Web Engine from automatically scrolling the * parent webpage to the booking engine when RocketRez sends its * "scrolltop" command. * * This only blocks scrollTo() calls originating from RocketRez's * webengine_load.js. Normal visitor scrolling and other website * scrolling behavior remain unaffected. */ (function () { const nativeScrollTo = window.scrollTo; window.scrollTo = function () { const stack = new Error().stack || ''; // Block scrollTo calls coming specifically from // RocketRez's scrollToRocketRezWebEngine function. if ( stack.includes('scrollToRocketRezWebEngine') || stack.includes('webengine_load.js') ) { console.log('Blocked RocketRez automatic scroll'); return; } return nativeScrollTo.apply(window, arguments); }; })();