1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-24 07:06:28 +09:00

Fix volume slider in chromium 🤷 (#12158)

Fixes #12156
This commit is contained in:
ThibG 2019-10-24 22:49:12 +02:00 committed by Eugen Rochko
parent d3145ced1f
commit bcf694dce7
2 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,7 @@ class Audio extends React.PureComponent {
<button type='button' aria-label={intl.formatMessage(muted ? messages.unmute : messages.mute)} onClick={this.toggleMute}><Icon id={muted ? 'volume-off' : 'volume-up'} fixedWidth /></button>
<div className='video-player__volume' onMouseDown={this.handleVolumeMouseDown} ref={this.setVolumeRef}>
&nbsp;
<div className='video-player__volume__current' style={{ width: `${volumeWidth}px` }} />
<span

View File

@ -470,6 +470,7 @@ class Video extends React.PureComponent {
<button type='button' aria-label={intl.formatMessage(muted ? messages.unmute : messages.mute)} onClick={this.toggleMute}><Icon id={muted ? 'volume-off' : 'volume-up'} fixedWidth /></button>
<div className='video-player__volume' onMouseDown={this.handleVolumeMouseDown} ref={this.setVolumeRef}>
&nbsp;
<div className='video-player__volume__current' style={{ width: `${volumeWidth}px` }} />
<span
className={classNames('video-player__volume__handle')}