{"id":40715691,"url":"https://github.com/xiel/embla-carousel-wheel-gestures","last_synced_at":"2026-04-02T23:36:10.202Z","repository":{"id":38426797,"uuid":"271358812","full_name":"xiel/embla-carousel-wheel-gestures","owner":"xiel","description":"wheel interactions for Embla Carousel","archived":false,"fork":false,"pushed_at":"2025-10-20T19:56:59.000Z","size":2082,"stargazers_count":62,"open_issues_count":10,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-01T09:02:53.410Z","etag":null,"topics":["gallery","gestures","react","slider","vanillajs","wheel"],"latest_commit_sha":null,"homepage":"https://embla-carousel-wheel-gestures.xiel.dev/react.html","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-10T18:48:37.000Z","updated_at":"2025-08-22T19:19:51.000Z","dependencies_parsed_at":"2023-02-06T10:01:04.541Z","dependency_job_id":"9c9e33af-23a7-4bf2-9e3e-c9b2a3656cf8","html_url":"https://github.com/xiel/embla-carousel-wheel-gestures","commit_stats":{"total_commits":227,"total_committers":6,"mean_commits":"37.833333333333336","dds":0.4713656387665198,"last_synced_commit":"a6d411a938af79c7f8278dae420e7efbb566fe85"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/xiel/embla-carousel-wheel-gestures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiel%2Fembla-carousel-wheel-gestures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiel%2Fembla-carousel-wheel-gestures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiel%2Fembla-carousel-wheel-gestures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiel%2Fembla-carousel-wheel-gestures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiel","download_url":"https://codeload.github.com/xiel/embla-carousel-wheel-gestures/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiel%2Fembla-carousel-wheel-gestures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28633748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gallery","gestures","react","slider","vanillajs","wheel"],"created_at":"2026-01-21T13:10:46.529Z","updated_at":"2026-04-02T23:36:10.195Z","avatar_url":"https://github.com/xiel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/davidjerleke/embla-carousel\" target=\"_blank\"\u003e\u003cimg width=\"70\" height=\"70\" src=\"/assets/embla-logo.svg\" alt=\"Embla Carousel\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003ch2 align=\"center\"\u003eWheel Gestures for Embla Carousel\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n  This plugin adds wheel interactions to the amazing\n  \u003ca href=\"https://github.com/davidjerleke/embla-carousel\"\u003eEmbla Carousel\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/embla-carousel-wheel-gestures\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/embla-carousel-wheel-gestures.svg\"\n  /\u003e\u003c/a\u003e\n  \n  \u003cimg alt=\"NPM\" src=\"https://img.shields.io/npm/l/embla-carousel-wheel-gestures\"\u003e\n  \n  \u003ca href=\"https://bundlephobia.com/result?p=embla-carousel-wheel-gestures@1.0.2\" target=\"_blank\"\u003e\n    \u003cimg\n      src=\"https://img.shields.io/bundlephobia/minzip/embla-carousel-wheel-gestures?color=%234c1\u0026label=gzip%20size\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\nFirst you need to follow the [installation instructions for Embla Carousel](https://github.com/davidcetinkaya/embla-carousel#installation), after that you can add wheel support:\n\n```sh\nyarn add embla-carousel embla-carousel-wheel-gestures # npm install --save embla-carousel embla-carousel-wheel-gestures\n```\n\n### JavaScript / TypeScript\n\n```js\nimport EmblaCarousel from 'embla-carousel'\nimport { WheelGesturesPlugin } from 'embla-carousel-wheel-gestures'\n\n// initialize Embla Carousel\nconst embla = EmblaCarousel(emblaNode, options, [WheelGesturesPlugin()])\n```\n\n### React\n\n```js\nimport useEmblaCarousel from 'embla-carousel-react'\nimport { WheelGesturesPlugin } from 'embla-carousel-wheel-gestures'\n\nconst EmblaCarouselComponent = ({ children }) =\u003e {\n  const [emblaRef, embla] = useEmblaCarousel({ loop: false, skipSnaps: true }, [\n    WheelGesturesPlugin(),\n  ])\n\n  // ...\n}\n```\n\nWith Embla Carousel v9, this plugin safely bails during SSR and attaches wheel listeners when the client hydrates.\n\n## Examples\n\n\u003cp\u003eGet started instantly with one of the CodeSandboxes below.\u003c/p\u003e\n\n\u003cp\u003e\n  \u003cimg src=\"/assets/codesandbox.svg\" height=\"23\" align=\"top\" /\u003e \u0026nbsp;\n  \u003ca href=\"https://codesandbox.io/s/github/xiel/embla-carousel-wheel-gestures/tree/master/docs/vanilla?file=/src/js/index.ts:1240-1266\" target=\"_blank\"\u003e\n    \u003ccode\u003eJavaScript / TypeScript\u003c/code\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\n  \u003cimg src=\"/assets/codesandbox.svg\" height=\"23\" align=\"top\" /\u003e \u0026nbsp;\n  \u003ca href=\"https://codesandbox.io/s/github/xiel/embla-carousel-wheel-gestures/tree/master/docs/react?file=/src/js/EmblaCarousel.tsx:879-942\" target=\"_blank\"\u003e\n    \u003ccode\u003eReact (embla-carousel-react)\u003c/code\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Options\n\n### wheelDraggingClass\n**Type**: string\u003cbr/\u003e\n**Default**: is-wheel-dragging\n\nChoose a classname that will be applied to the container during a wheel gesture. Pass an empty string to opt-out.\n\n\n### forceWheelAxis\n**Type**: 'x' | 'y'\u003cbr/\u003e\n**Default**: undefined\n\nForce an axis on which to listen for wheel events. Useful if you want to slide horizontally when scrolling vertically or vice versa.\n\n\n### target\n**Type**: Element\u003cbr/\u003e\n**Default**: undefined\n\nSpecify the element that should be observed for wheel events.\n\n## Global Options\n\nYou can also set global options that will be applied to all instances. This allows for overriding the default plugin options with your own:\n\n```js\nWheelGesturesPlugin.globalOptions = {\n  wheelDraggingClass: 'my-class',\n}\n```\n\n## OS \u0026 Browser Support\n\n- Mac OS (Chrome, Firefox, Safari, Edge), Magic Mouse, Magic Trackpad\n- Windows (Chrome, Firefox, Edge), Microsoft Precision Touchpads\n\n#### Legacy Browsers\n\nIf you need to support IE 10 \u0026 11 you might need to install and add extra polyfills:\n\n```js\n// Adds support old IE \u003e= 10\nimport 'core-js/stable'\nimport 'events-polyfill/src/constructors/MouseEvent'\n```\n\n## Thanks\n\nKudos to [David Jerleke](https://github.com/davidjerleke) for creating [Embla Carousel](https://github.com/davidjerleke/embla-carousel) with its open API 🙏\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiel%2Fembla-carousel-wheel-gestures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiel%2Fembla-carousel-wheel-gestures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiel%2Fembla-carousel-wheel-gestures/lists"}