if (typeof window.scrollX === 'number' && typeof window.scrollY === 'number') {
        return {x: window.scrollX, y: window.scrollY};
    }