René's URL Explorer Experiment


Title: fix(files): let a mouse wheel scroll CSV and XLSX previews horizontally by waleedlatif1 · Pull Request #6563 · simstudioai/sim · GitHub

Open Graph Title: fix(files): let a mouse wheel scroll CSV and XLSX previews horizontally by waleedlatif1 · Pull Request #6563 · simstudioai/sim

X Title: fix(files): let a mouse wheel scroll CSV and XLSX previews horizontally by waleedlatif1 · Pull Request #6563 · simstudioai/sim

Description: Summary Hovering a CSV/XLSX preview table and scrolling does nothing sideways on a mouse whose wheel reports only deltaY — the horizontal overflow is reachable only by dragging the scrollbar The zoomable previews (docx, pdf, pptx, image) already bind bindPreviewWheelZoom, whose horizontal branch maps a trackpad's deltaX, and Shift+deltaY on a plain mouse, onto scrollLeft. The tabular previews never bound anything Extracted that branch into bindPreviewHorizontalWheel — sharing the delta logic with the zooming variant rather than duplicating it — and bound it in all three tabular preview containers (csv-table-preview, xlsx-preview, preview-panel's CsvPreview) via a useHorizontalWheelScroll ref callback The new binder ignores ctrl/cmd+wheel, so browser page zoom still works over a table. These previews have no zoom of their own, unlike the zoomable ones Latent until #6550: while the table was sized to the frame it never overflowed, so there was nothing to scroll. Independent of that PR though — the binder no-ops when scrollWidth <= clientWidth, so it is inert until the table is actually wider. Type of Change Bug fix Testing 8 unit tests in preview-wheel-zoom.test.ts covering trackpad deltaX, Shift+wheel, plain vertical wheel (must stay vertical), ctrl/cmd passthrough, the no-overflow no-op, unbind, and capture from a child cell. Mutation-verified: 3 fail when the binder body is removed. jsdom does no layout, so the tests assert the handler's contract rather than real scrolling. Verified actual behavior separately with trusted wheel events in headless Chromium, hovering a table cell: plain wheel Shift+wheel unbound (today) scrolls down 200 scrolls down 200 — no horizontal movement bound (this PR) scrolls down 200 scrolls right 200 Not yet exercised in the running app. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Hovering a CSV/XLSX preview table and scrolling does nothing sideways on a mouse whose wheel reports only deltaY — the horizontal overflow is reachable only by dragging the scrollbar The z...

X Description: Summary Hovering a CSV/XLSX preview table and scrolling does nothing sideways on a mouse whose wheel reports only deltaY — the horizontal overflow is reachable only by dragging the scrollbar The z...

Opengraph URL: https://github.com/simstudioai/sim/pull/6563

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:94b2ecbc-677a-c9d4-04d6-432ba9abf6c6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA9C0:2833F1:97657E:CFD614:6AFB4BF0
html-safe-nonce62ea118d097a741be1c3c4566a66ed7c40c615888fd301df5d555546c3514e89
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUMwOjI4MzNGMTo5NzY1N0U6Q0ZENjE0OjZBRkI0QkYwIiwidmlzaXRvcl9pZCI6IjE0MTQ2NTkxMzY5OTcyNDc5ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac085858806782f98062a8116ac86bbd36bf23fcadaa2e630386e94cb36d135ba9
hovercard-subject-tagpull_request:4257552247
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6563/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Hovering a CSV/XLSX preview table and scrolling does nothing sideways on a mouse whose wheel reports only deltaY — the horizontal overflow is reachable only by dragging the scrollbar The z...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6563/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6563%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6563%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6563/files
Reloadhttps://github.com/simstudioai/sim/pull/6563/files
Reloadhttps://github.com/simstudioai/sim/pull/6563/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/preview-horizontal-wheelhttps://github.com/simstudioai/sim/tree/fix/preview-horizontal-wheel
Conversation 16 https://github.com/simstudioai/sim/pull/6563
Commits 3 https://github.com/simstudioai/sim/pull/6563/commits
Checks 30 https://github.com/simstudioai/sim/pull/6563/checks
Files changed https://github.com/simstudioai/sim/pull/6563/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6563/files
fix(files): let a mouse wheel scroll CSV and XLSX previews horizontally https://github.com/simstudioai/sim/pull/6563/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/6563/files
b019698 fix(files): let a mouse wheel scroll CSV and XLSX previews horizontally waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6563/commits/b019698b654e826c255dc7ee3ce01af7c4c646d1
2c11f91 fix(files): keep the vertical component of a diagonal wheel pan waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6563/commits/2c11f91a89f9db87f15cfcb30abb5f2c9caa06ef
f987a15 fix(files): normalize wheel deltas to pixels and import the hook abso… waleedlatif1 Aug 11, 2026 https://github.com/simstudioai/sim/pull/6563/commits/f987a159742c5cc0b8c828c7157db45dfad655a6
Clear filters https://github.com/simstudioai/sim/pull/6563/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6563/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6563/files
csv-table-preview.tsx https://github.com/simstudioai/sim/pull/6563/files#diff-9bbdef16313006cbb1ec022ed45779ea47b89dd436d63cc8c9f4d369dd6dcf83
preview-panel.tsx https://github.com/simstudioai/sim/pull/6563/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2
preview-wheel-zoom.test.ts https://github.com/simstudioai/sim/pull/6563/files#diff-3d3817696beef1a1583d19e9246eef9a39814e17d3e430997a06c18819cea7c3
preview-wheel-zoom.ts https://github.com/simstudioai/sim/pull/6563/files#diff-a4b4bdae9dcacac7091c6819168d807992565d5a19c340d94c1ac92fd1631ad7
use-horizontal-wheel-scroll.ts https://github.com/simstudioai/sim/pull/6563/files#diff-7b8c2f71088368a5e1fba16eceb49431e8bfd3a11045247b596b4fa8cad8f086
xlsx-preview.tsx https://github.com/simstudioai/sim/pull/6563/files#diff-74cfcd38b41fad5f95da270da750659a17582907fa23d5baa3ca93a090d90707
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/csv-table-preview.tsxhttps://github.com/simstudioai/sim/pull/6563/files#diff-9bbdef16313006cbb1ec022ed45779ea47b89dd436d63cc8c9f4d369dd6dcf83
View file https://github.com/simstudioai/sim/blob/f987a159742c5cc0b8c828c7157db45dfad655a6/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/csv-table-preview.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6563/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6563/files#diff-9bbdef16313006cbb1ec022ed45779ea47b89dd436d63cc8c9f4d369dd6dcf83
https://github.com/simstudioai/sim/pull/6563/files#diff-9bbdef16313006cbb1ec022ed45779ea47b89dd436d63cc8c9f4d369dd6dcf83
https://github.com/simstudioai/sim/pull/6563/files#diff-9bbdef16313006cbb1ec022ed45779ea47b89dd436d63cc8c9f4d369dd6dcf83
https://github.com/simstudioai/sim/pull/6563/files#diff-9bbdef16313006cbb1ec022ed45779ea47b89dd436d63cc8c9f4d369dd6dcf83
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsxhttps://github.com/simstudioai/sim/pull/6563/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2
View file https://github.com/simstudioai/sim/blob/f987a159742c5cc0b8c828c7157db45dfad655a6/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/preview-panel.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6563/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6563/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2
https://github.com/simstudioai/sim/pull/6563/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2
https://github.com/simstudioai/sim/pull/6563/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2
https://github.com/simstudioai/sim/pull/6563/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2
https://github.com/simstudioai/sim/pull/6563/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-wheel-zoom.test.tshttps://github.com/simstudioai/sim/pull/6563/files#diff-3d3817696beef1a1583d19e9246eef9a39814e17d3e430997a06c18819cea7c3
View file https://github.com/simstudioai/sim/blob/f987a159742c5cc0b8c828c7157db45dfad655a6/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/preview-wheel-zoom.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6563/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-wheel-zoom.tshttps://github.com/simstudioai/sim/pull/6563/files#diff-a4b4bdae9dcacac7091c6819168d807992565d5a19c340d94c1ac92fd1631ad7
View file https://github.com/simstudioai/sim/blob/f987a159742c5cc0b8c828c7157db45dfad655a6/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/preview-wheel-zoom.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6563/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6563/files#diff-a4b4bdae9dcacac7091c6819168d807992565d5a19c340d94c1ac92fd1631ad7
Please reload this pagehttps://github.com/simstudioai/sim/pull/6563/files
https://github.com/simstudioai/sim/pull/6563/files#diff-a4b4bdae9dcacac7091c6819168d807992565d5a19c340d94c1ac92fd1631ad7
https://github.com/simstudioai/sim/pull/6563/files#diff-a4b4bdae9dcacac7091c6819168d807992565d5a19c340d94c1ac92fd1631ad7
...m/app/workspace/[workspaceId]/files/components/file-viewer/use-horizontal-wheel-scroll.tshttps://github.com/simstudioai/sim/pull/6563/files#diff-7b8c2f71088368a5e1fba16eceb49431e8bfd3a11045247b596b4fa8cad8f086
View file https://github.com/simstudioai/sim/blob/f987a159742c5cc0b8c828c7157db45dfad655a6/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/use-horizontal-wheel-scroll.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6563/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/xlsx-preview.tsxhttps://github.com/simstudioai/sim/pull/6563/files#diff-74cfcd38b41fad5f95da270da750659a17582907fa23d5baa3ca93a090d90707
View file https://github.com/simstudioai/sim/blob/f987a159742c5cc0b8c828c7157db45dfad655a6/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/xlsx-preview.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6563/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6563/files#diff-74cfcd38b41fad5f95da270da750659a17582907fa23d5baa3ca93a090d90707
https://github.com/simstudioai/sim/pull/6563/files#diff-74cfcd38b41fad5f95da270da750659a17582907fa23d5baa3ca93a090d90707
https://github.com/simstudioai/sim/pull/6563/files#diff-74cfcd38b41fad5f95da270da750659a17582907fa23d5baa3ca93a090d90707
https://github.com/simstudioai/sim/pull/6563/files#diff-74cfcd38b41fad5f95da270da750659a17582907fa23d5baa3ca93a090d90707
https://github.com/simstudioai/sim/pull/6563/files#diff-74cfcd38b41fad5f95da270da750659a17582907fa23d5baa3ca93a090d90707
Please reload this pagehttps://github.com/simstudioai/sim/pull/6563/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.