Fix led brightness visuals where it's offset on latest Chrome, Firefox and Edge (#651)

This commit is contained in:
Sam El-Husseini 2018-02-15 13:15:24 -08:00 committed by GitHub
parent 4690d6838b
commit 760940b37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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})`;
}