Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use non-linear volume slider #266

Merged
merged 2 commits into from
Jan 12, 2021
Merged

Conversation

JeffreyCA
Copy link
Contributor

@JeffreyCA JeffreyCA commented Jan 11, 2021

Implements a non-linear volume slider (#227)

Now, when you drag the volume slider to 50% it feels closer to a 50% reduction in perceived volume.

Other changes

  • When props.onAudioVolumeChange is called, the precision of the parameter is increased to 4 decimal values. This is because when you adjust the volume at values closer to 0, there is a bigger difference in perceived volume.
  • My last change wasn't applied to the mobile player, so I added it

@reviewflow
Copy link

reviewflow bot commented Jan 11, 2021

Options:

  • This PR is a feature branch
  • Add [skip ci] on merge commit
  • Auto merge when this PR is ready and has no failed statuses. (Also has a queue per repo to prevent multiple useless "Update branch" triggers)
  • Automatic branch delete after this PR is merged

@commit-lint
Copy link

commit-lint bot commented Jan 11, 2021

Features

  • implement non-linear volume slider (a7b9cec)

Bug Fixes

  • play button delay in mobile player (5e8eccd)

Contributors

JeffreyCA

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@netlify
Copy link

netlify bot commented Jan 11, 2021

✔️ Deploy preview for react-jinke-music-player ready!

🔨 Explore the source changes: 5e8eccd

🔍 Inspect the deploy logs: https://app.netlify.com/sites/react-jinke-music-player/deploys/5ffca72df8bae300071c0eb5

😎 Browse the preview: https://deploy-preview-266--react-jinke-music-player.netlify.app

@codecov
Copy link

codecov bot commented Jan 11, 2021

Codecov Report

Merging #266 (5e8eccd) into master (d4ecfb7) will increase coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #266      +/-   ##
==========================================
+ Coverage   76.44%   76.57%   +0.13%     
==========================================
  Files          21       21              
  Lines         866      871       +5     
  Branches      223      223              
==========================================
+ Hits          662      667       +5     
  Misses        153      153              
  Partials       51       51              
Impacted Files Coverage Δ
src/components/PlayerMobile.js 100.00% <ø> (ø)
src/index.js 76.23% <100.00%> (+0.16%) ⬆️

@lijinke666
Copy link
Owner

Thanks. A lot of people want me to add features that they want, but nobody wants to do it themselves, thank you for your work

@lijinke666 lijinke666 merged commit e921b43 into lijinke666:master Jan 12, 2021
@JeffreyCA JeffreyCA deleted the exp-volume branch January 12, 2021 04:24
@github-actions
Copy link

🎉 This PR is included in version 4.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants