SShortSingh.
Back to feed

Keeping an important scroll-snap panel from being skipped without changing the whole track

0
·2 views

A scroll-snap track can follow its snap rules correctly and still jump past a middle panel during a long wheel, swipe, or trackpad movement. The suggested fix is narrow: keep the container's axis and strictness unchanged, and apply scroll-snap-stop: always only to the panel that must not be bypassed. With the default stop behavior, that panel can still be a landing point without interrupting a long gesture, whereas the stronger rule forces the browser to stop there during the operation. Later panels remain reachable through subsequent scroll actions. The approach suits critical content such as review steps or required decisions, and the article cautions that it does not address headers covering targets, scroll anchoring, or identical behavior across all browsers and devices.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

JDownloader Remote Control Calls for a Separate, Explicit Trust Review

A security write-up argues that enabling JDownloader's remote control should be treated as a distinct trust relationship that is documented on its own. It cites a ZoomEye search that returned 43 matching JDownloader instances, while stressing that this count does not show any instance is unauthenticated or directly reachable. The piece explains the difference between account-mediated access through MyJDownloader and direct connection mode, which can expose a local listener more openly. It recommends recording hosts, listening interfaces, TLS and firewall settings, and which accounts can add or remove devices. It also advises preferring account-based access, restricting any direct listener to management interfaces with supported authentication, and applying updates through official channels.

0
ProgrammingDEV Community ·

Feed CRM Lead Stages Back to Google Ads to Optimize for Revenue, Not Form Fills

Many B2B advertisers optimize Google Ads around form submissions, which lets Smart Bidding favor visitors who fill in forms but never buy. The article proposes sending later CRM milestones, such as qualification, proposal, and sale, back to Google Ads as offline conversions. The method involves storing the click ID on first visit, carrying it through to the CRM lead record, and having sales keep a fixed set of pipeline statuses up to date. Each status change is then uploaded to Google Ads with its click ID, timestamp, and optional value, typically through an API-based queue and worker.

0
ProgrammingDEV Community ·

DHVON: A Free, Offline-First Android Media Player Built Without Ads or Bloat

The developer behind DHVON built an Android media player aimed at users frustrated by ad-laden apps or outdated interfaces. The app merges a minimal, OLED-friendly design with gesture-based controls for local video and music, and it works without an internet connection or network permissions. Its decoding pipeline uses Media3 and FFmpeg, then hands unsupported formats such as DivX or MPEG-2 to libVLC in the background. The developer released version 3.0.1 under the GPL-3.0-or-later license, and the source is available on GitHub.

0
ProgrammingDEV Community ·

root_toast: Flutter toasts that stay visible above bottom sheets, dialogs and the keyboard

A Flutter developer describes a common issue where SnackBars from ScaffoldMessenger get hidden behind modal bottom sheets, dialogs, or the keyboard. They introduce root_toast, a package whose toasts are drawn in the root Overlay so they remain above every route and the keyboard. The package offers four toast types, three positions, and replace, queue, or stack policies for handling multiple toasts. It also supports swipe and tap dismissal, screen-reader announcements, reduced-motion support, and safe calls after an await. Installation is via GitHub, with setup options for widgets and for showing toasts from services without a BuildContext.