Skip to content

Commit ca49744

Browse files
author
kirbIndustries
authored
Update index.js
1 parent 6aa0c59 commit ca49744

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

js/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14053,9 +14053,11 @@ function setupDrawerInteractions() {
1405314053
}
1405414054

1405514055
if (isDragging) {
14056+
const x = e.touches[0].clientX;
1405614057
const y = e.touches[0].clientY;
1405714058
const isDrawerOpen = appDrawer.classList.contains('open');
14058-
const deltaY = startY - y; // Positive = Up, Negative = Down
14059+
const deltaX = x - startX;
14060+
const deltaY = startY - y;
1405914061

1406014062
// Check for a clear DIAGONAL-UP movement
1406114063
if (deltaY < -40 && Math.abs(deltaX) > 40) {
@@ -14102,7 +14104,7 @@ function setupDrawerInteractions() {
1410214104
el.style.pointerEvents = 'auto';
1410314105
});
1410414106

14105-
const el = document.elementFromPoint(x / zoom, y / zoom);
14107+
const el = document.elementFromPoint(x, y);
1410614108

1410714109
// Find the correct iframe (direct hit, or inside the specific embed wrapper we hit)
1410814110
let targetIframe = null;

0 commit comments

Comments
 (0)