Mobile CRO & Gesture Physics

Mobile Exit-Intent Detection: Touch Physics & Machine Learning

Why `mouseleave` does not exist on glass, why naive upward-scroll triggers misfire on 65% of readers, and how multi-vector kinematic sequences predict session termination.

Direct Definition

Mobile Exit-Intent Detection is the real-time evaluation of multi-step touchscreen kinematic sequences - correlating upward flick velocity ($v_y < -2.2\text{ px/ms}$), browser chrome expansion (`visualViewport` height deltas), bezel-edge thumb drift, and cadence decay - to forecast session abandonment 2 to 5 seconds before the user taps the back button or switches tabs.

Why Legacy Upward-Scroll Rules Misfire on Smartphones

Desktop exit-intent scripts rely on a trivial geometric boundary: when `mousemove` reports `e.clientY <= 0` with negative vertical velocity, the mouse pointer has crossed out of the document viewport toward the browser tab bar. On a touchscreen, there is no hovering cursor - every coordinate exists only while a finger physically presses the glass.

Legacy popup scripts attempt to fake mobile exit-intent using a single rule: "fire if the user scrolls upward by X pixels." That heuristic fails in production because shoppers constantly scroll upward to re-check a size chart, compare two product photos, or return to a sticky filter bar. As we detail in Why Exit-Intent Popups Fail on Mobile (and How AI Fixes It), separating an engaged reader scrolling up to re-read specs from a frustrated visitor preparing to bounce requires evaluating four physical vectors simultaneously:

Physical Signal Vector Engaged Re-Reading Scroll Pre-Exit Abandonment Sequence
Upward Flick Velocity ($v_y$) $-0.4 \le v_y \le -1.2\text{ px/ms}$ (controlled) $v_y < -2.5\text{ px/ms}$ (ballistic flick to reveal chrome)
Post-Release Braking Thumb brakes over target section Uninhibited coasting + immediate 2nd upward flick
VisualViewport Delta ($\Delta H$) Stable or minor toolbar shift `visualViewport.height` shrinks as OS chrome expands
Lateral Bezel Trajectory Centered within $15\%–85\%$ viewport width `pointerdown` initiates within $24\text{px}$ of left/right bezel

Correlating Velocity Spikes with `visualViewport` Chrome Expansion

When a mobile user scrolls down a page, both iOS Safari and Android Chrome collapse their address and navigation toolbars to maximize screen real estate. To leave the site via the URL bar or tab switcher, the user first executes a sharp upward flick to force the browser to re-expand its system chrome. Combining Touch Gesture Kinematics and Gesture Inertia Analysis with `window.visualViewport` resize telemetry isolates that exact pre-exit transition:

// Detecting mobile browser chrome expansion paired with ballistic upward flick
let maxViewportH = window.visualViewport ? window.visualViewport.height : window.innerHeight;
let lastUpwardFlickVelocity = 0; // px/ms

if (window.visualViewport) { window.visualViewport.addEventListener('resize', () => { const currentH = window.visualViewport.height; const chromeExpansionPx = maxViewportH - currentH;

snippet
// Browser address/tab bar just expanded by &gt;44px after a fast upward flick
if (chromeExpansionPx &gt; 44 &amp;&amp; lastUpwardFlickVelocity &lt; -2.2) {
  ringBuffer.flagPreExitChromeReveal({
    vy: lastUpwardFlickVelocity,
    chromeDelta: chromeExpansionPx,
    scrollY: window.scrollY
  });
}
if (currentH &gt; maxViewportH) maxViewportH = currentH;

}, { passive: true }); }

Hardware Normalization Notes (iOS Safari Bottom Bar vs Android Predictive Back)

Modern mobile operating systems place navigation chrome and system back-gestures in different physical screen zones, requiring OS-aware spatial weighting:

iOS Safari (Bottom Tab Bar & Left Bezel)
  • Bottom Floating Capsule: Since iOS 15+, Safari defaults to a bottom-anchored address/tab bar that collapses on downward scroll and expands on upward flick or bottom-edge tap (`clientY > innerHeight - 56`).
  • Left-Bezel History Swipe: A horizontal drag starting at `clientX < 24` with $\Delta x > 18\text{px}$ and $|\Delta y| < 8\text{px}$ triggers native WebKit history back navigation and fires `pointercancel` to the page.
Android Blink (Top Address Bar & Dual-Edge Back)
  • Top Toolbar Reveal: Chrome on Android anchors the omnibox and tab switcher at the top edge (`clientY < 56`), requiring upward momentum combined with thumb reach shifting toward the upper third of the glass.
  • Dual-Bezel Predictive Back: Android 13/14+ gesture navigation triggers system `Back` from either the left or right screen bezel (`clientX < 20` or `clientX > innerWidth - 20`).
Pre-Bounce Prediction // 2–5s Early Warning Window

Anticipate Mobile Abandonment Before the Tab Closes

Explore our complete technical breakdown on mobile exit physics, `visualViewport` telemetry, and edge ML scoring.