Scroll Deceleration Detection: Kinetic Motion vs Visual Attention
Separating passive momentum coasting ($v(t) = v_0 \cdot e^{-\lambda t}$) from intentional thumb braking ($a \ll 0$) after `pointerup` on touchscreen viewports.
Direct Definition
Gesture Inertia Analysis is the post-release evaluation of viewport scroll deceleration after a user lifts their finger from the glass (`touchend` / `pointerup`), comparing the observed scroll decay rate against the operating system's native exponential friction curve to detect deliberate thumb-braking interrupts vs unfocused momentum coasting.
The Physics of Post-Release Viewport Momentum
When a smartphone user flicks a webpage and lifts their thumb off the screen, the scroll does not stop at `touchend`. Instead, the mobile operating system's compositor takes the terminal release velocity $v_0$ captured by Touch Gesture Kinematics and drives a synthetic momentum scroll that decays exponentially over the next 800ms to 2,200ms according to a hardware-tuned friction coefficient $\lambda$:
v(t) = v_0 · r^(t_ms) | a(t) = dv/dt = (v_n - v_{n-1}) / Δt
By comparing real-time `scroll` delta velocities after finger lift-off against the expected uninhibited friction decay curve, the telemetry engine classifies every scroll episode into one of three distinct physical states:
| Post-Release Regime | Deceleration Derivative ($a = \Delta v / \Delta t$) | Touch-Interrupt Signature | Behavioral Interpretation |
|---|---|---|---|
| 1. Uninhibited Coasting | Matches OS decay ($r \approx 0.998/\text{ms}$) | Zero `pointerdown` until $v(t) \to 0$ | Passive skimming; eye is not anchored on content. |
| 2. Kinetic Brake (Tap-to-Stop) | $a < -0.15\text{ px/ms}^2$ (instant step to $0$) | `pointerdown` fires while $|v(t)| > 0.8\text{ px/ms}$ | Visual catch: user spotted a target element mid-flight and slammed the brake. |
| 3. Upward Velocity Cascade | Repeated negative $v_y$ spikes ($< -2.8\text{ px/ms}$) | Re-flick before coasting settles | Rapid scroll-to-top to reveal browser URL bar or back navigation. |
Detecting Mid-Flight Kinetic Braking in JavaScript
A "Tap-to-Stop" brake - where the viewport is coasting at high speed and the user plants their thumb on the glass to freeze the frame over a specification table or pricing card - is one of the strongest positive signals for transitioning a visitor into the Decision Intent Zone. Because `touchend` has already fired, the detector correlates passive `scroll` frame deltas with subsequent `pointerdown` interrupts:
let isCoasting = false;
let lastScrollY = window.scrollY;
let lastScrollT = performance.now();
let currentCoastVelocity = 0; // px/ms
window.addEventListener('pointerup', (e) => {
if (e.pointerType === 'touch') isCoasting = true;
}, { passive: true });
window.addEventListener('scroll', () => {
const now = performance.now();
const dt = now - lastScrollT;
if (dt > 2) {
currentCoastVelocity = Math.abs(window.scrollY - lastScrollY) / dt;
lastScrollY = window.scrollY;
lastScrollT = now;
}
}, { passive: true });
window.addEventListener('pointerdown', (e) => {
// User planted thumb while viewport was still coasting > 0.85 px/ms
if (isCoasting && currentCoastVelocity > 0.85) {
const decelSpike = -currentCoastVelocity / Math.max(1, e.timeStamp - lastScrollT);
ringBuffer.recordKineticBrake(window.scrollY, currentCoastVelocity, decelSpike);
}
isCoasting = false;
currentCoastVelocity = 0;
}, { passive: true });
Hardware Normalization Notes (iOS UIScrollView vs Android OverScroller)
One reason legacy exit-intent scripts fail on mobile is that iOS and Android run completely different momentum equations inside their native compositor engines, requiring hardware-specific friction normalization:
- Exponential Decay Rate: Uses `UIScrollViewDecelerationRateNormal` ($r = 0.998$ per ms), producing a shorter, higher-drag coast that halts faster after finger release.
- Rubber-Band Overscroll: At document boundaries (`scrollY < 0` or past `scrollHeight`), iOS allows negative elastic coordinates that bounce back via spring physics; these synthetic bounce frames must be filtered out so they are not misread as direction reversals.
- Cubic Spline Inflection: Uses a spline deceleration curve parameterized by `ViewConfiguration.getScrollFriction()` ($0.015$), allowing single flicks to coast nearly twice as far as iOS at high initial velocities.
- Edge Glow Clamp: Clamps `window.scrollY` strictly at `0` at the top of the document while rendering a GPU stretch overscroll effect without emitting negative scroll coordinates.
Related Glossary Concepts
Distinguish Casual Skimmers from Focused Buyers
See how Nexolytix models post-release scroll decay and thumb-braking interrupts across iOS and Android viewports.