Skip to content

fix: resolve swiper features slider horizontal swipe defect#535

Merged
indresh404 merged 1 commit into
indresh404:mainfrom
utkrsh29:fix/slider-swipe
Jun 15, 2026
Merged

fix: resolve swiper features slider horizontal swipe defect#535
indresh404 merged 1 commit into
indresh404:mainfrom
utkrsh29:fix/slider-swipe

Conversation

@utkrsh29

Copy link
Copy Markdown
Contributor

Pull Request: Features Slider Horizontal Swipe Bug Fix

Description

This pull request resolves the horizontal swipe navigation defect on the home page features slider (Home.jsx), enabling users on various desktop trackpads, mouse drags, and touch screens to scroll horizontally through the features list.


Technical Details & Implementation

  • Imported the Mousewheel module from swiper/modules and CSS from swiper/css/navigation.
  • Configured <Swiper> options to include Mousewheel and enabled mousewheel={{ forceToAxis: true }} to restrict gestures to the horizontal axis (preventing page scroll hijacking).
  • Updated .swiper-container-features in index.css to add touch-action: pan-y; to enable touch drag/swipe gestures to propagate correctly without vertical scroll hijacking.

Verification & Testing

  • All 49 baseline unit tests passed:
    npx vitest run
  • Compiled the production bundle successfully:
    npm run build
  • Verified horizontal swipe navigation (via mouse dragging and trackpad gestures) on a local dev server at http://localhost:5173/.

CLOSES #298

@utkrsh29 utkrsh29 requested a review from indresh404 as a code owner June 15, 2026 05:18
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ranker-hub Ready Ready Preview, Comment Jun 15, 2026 5:19am

@github-actions github-actions Bot added backend Backend/Firebase related changes bug Something isn't working enhancement New feature or request frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review labels Jun 15, 2026
@indresh404 indresh404 merged commit f196b6a into indresh404:main Jun 15, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend/Firebase related changes bug Something isn't working enhancement New feature or request frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 level3 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Home Page Features Slider Horizontal Swipe Defect

2 participants