Fix led brightness visuals where it's offset on latest Chrome, Firefox and Edge (#651)
This commit is contained in:
parent
4690d6838b
commit
760940b37d
@ -396,6 +396,7 @@ namespace pxsim.visuals {
|
||||
const transfrom = imgbr > 0 ? imgbr / 255 * 0.4 + 0.6 : 0;
|
||||
sel.style.opacity = (opacity / 255) + "";
|
||||
if (transfrom > 0) {
|
||||
(sel.style as any).transformBox = 'fill-box';
|
||||
sel.style.transformOrigin = '50% 50%';
|
||||
sel.style.transform = `scale(${transfrom})`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user