mui / mui/material-ui

[slider] Support for Mouse Scroll Effect

Open
#28,566 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

scope: slider type: new feature waiting for 👍
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

It would be great to add mouse scroll effect to Slider component since sometimes it is necessary to use it, such as in the Volume Slider (take example of Spotify's Volume Slider), it allows us to configure the volume just by simply scroll the mouse.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

It allows users to change the value of the slider by simply scrolling the mouse when the cursor hovers the slider component.

Examples 🌈

https://codepen.io/stoi2m1/pen/QKELpj

Motivation 🔦

This feature may be very helpful for UX, which allows users to change the value of the slider by simply scrolling the mouse without have to do other additional tasks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Slider component and compare the requested interaction with the linked CodePen example. Define the expected mouse-wheel behavior while the cursor hovers over the slider, including how scrolling changes its value. The work is done when the component supports that interaction consistently and its behavior is covered by appropriate validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.