Frontmatter
| id | 9379 |
| title | Mobile Scrollbar UX: Increase touch width to 40px and theme thumb colors |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Mar 7, 2026, 6:56 PM |
| updatedAt | Mar 7, 2026, 7:09 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9379 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 9369 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 7, 2026, 7:09 PM |
Mobile Scrollbar UX: Increase touch width to 40px and theme thumb colors
tobiu added parent issue #9369 on Mar 7, 2026, 6:57 PM
tobiu assigned to @tobiu on Mar 7, 2026, 7:07 PM

tobiu
Mar 7, 2026, 7:08 PM
Input from Gemini 3.1 Pro:
✦ I have completed the UX upgrades for the mobile scrollbar!
- Massive Touch Target: The
body.neo-has-touchenvironment now expands the vertical scrollbar container and the::-webkit-scrollbarwidth to40px(via--grid-scrollbar-touch-width). This aligns with mobile accessibility guidelines for touch targets.- Sleek Visuals: To prevent the thumb from looking comically huge inside a 40px track, I added an
8pxtransparent border (background-clip: padding-box). The visual thumb is a sleek24pxwide, but the invisible touchable area remains40px.- Themed Colors: The hardcoded grey fallback is gone. All 5 themes now provide a
--grid-scrollbar-thumb-colorthat matches their respective dark/light palettes (e.g., translucent white forneo-dark).- WebKit Bug Fix: The inner spacer div is explicitly set to
10px. This tricks the mobile WebKit emulator into recognizing enough content width to paint the thumb, but avoids hitting the right-edge boundary that triggers the "corner intersection artifact".A note on Thumb Height: In the Chrome DevTools mobile emulator, the thumb height might still appear incredibly small (or invisible) when viewing 50,000 rows. This is because WebKit calculates native thumb height based on the
containerHeight / contentHeightratio, and the emulator often fails to enforce a reasonable minimum height. Real iOS/Android devices have robust OS-level minimum thumb sizes for accessibility. We will test these changes on physical hardware to confirm if the OS-level minimum height kicks in as expected. If not, a pure DOM-based custom "Scrub Bar" component might be the final evolution for massive datasets.Closing this ticket!
tobiu closed this issue on Mar 7, 2026, 7:09 PM
Follow-up to Epic #9369
In resolving the invisible WebKit scrollbar thumb on mobile (#9376), we had to explicitly define
::-webkit-scrollbar-thumbstyling. Currently, thebackground-coloris hardcoded to a neutral grey. Additionally, the touch target width (24px) is too small for comfortable grabbing according to mobile HIG standards.Tasks:
--grid-scrollbar-thumb-color).--grid-scrollbar-touch-widthfrom24pxto40pxto provide a massive, reliable touch hitbox for the "scrub bar" interaction.8pxso the visual thumb remains sleek (24pxvisual width) inside the massive40pxinvisible container.