@@ -1361,7 +1361,7 @@ function updateTrail(e)
|
||||
{
|
||||
if (e==null) return;
|
||||
let sd = e.parentNode.getElementsByClassName('sliderdisplay')[0];
|
||||
if (sd && getComputedStyle(sd).getPropertyValue("--bg") !== "none") {
|
||||
if (sd && getComputedStyle(sd).getPropertyValue("--bg").trim() !== "none") { // trim() for Safari
|
||||
var max = e.hasAttribute('max') ? e.attributes.max.value : 255;
|
||||
var perc = Math.round(e.value * 100 / max);
|
||||
if (perc < 50) perc += 2;
|
||||
|
||||
Reference in New Issue
Block a user