mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-11 04:01:18 +00:00
Fix volume slider in voice chats.
This commit is contained in:
parent
468e75a572
commit
90ff8ecd0f
@ -260,7 +260,14 @@ void MediaSlider::paintEvent(QPaintEvent *e) {
|
||||
: seekRect.height();
|
||||
const auto from = 0;
|
||||
const auto length = (horizontal ? width() : height());
|
||||
const auto mid = qRound(from + value * length);
|
||||
const auto alwaysSeekSize = horizontal
|
||||
? _st.seekSize.width()
|
||||
: _st.seekSize.height();
|
||||
const auto mid = _alwaysDisplayMarker
|
||||
? qRound(from
|
||||
+ (alwaysSeekSize / 2.)
|
||||
+ value * (length - alwaysSeekSize))
|
||||
: qRound(from + value * length);
|
||||
const auto till = std::max(mid, qRound(from + receivedTill * length));
|
||||
const auto end = from + length;
|
||||
const auto activeFg = disabled
|
||||
|
Loading…
Reference in New Issue
Block a user