update video osd

This commit is contained in:
Luke Pulverenti 2017-01-05 00:22:32 -05:00
parent 17c23b1c8c
commit 856b9cd9ec
6 changed files with 15 additions and 15 deletions

View file

@ -42,7 +42,10 @@
if (range.getBubbleText) {
value = range.getBubbleText(value);
} else {
value = Math.round(value);
}
bubbleText.innerHTML = value;
}
@ -114,7 +117,7 @@
var clientX = e.clientX;
var bubbleValue = (clientX - rect.left) / rect.width;
bubbleValue *= 100;
updateBubble(this, Math.round(bubbleValue), sliderBubble, sliderBubbleText);
updateBubble(this, bubbleValue, sliderBubble, sliderBubbleText);
if (hasHideClass) {
sliderBubble.classList.remove('hide');