소스 검색

Remove pointless canvas height check that was forcing reflows.

tags/v0.1.0
Fen Dweller 5 년 전
부모
커밋
f0a6f432ef
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. +0
    -1
      macrovision.js

+ 0
- 1
macrovision.js 파일 보기

@@ -109,7 +109,6 @@ function updateEntityElement(entity, element, zIndex) {

element.style.left = position.x + "px";
element.style.top = position.y + "px";
const canvasHeight = document.querySelector("#display").clientHeight;
const pixels = math.divide(entity.views[view].height, config.height) * (canvasHeight - 100);
const bonus = (entity.views[view].image.extra ? entity.views[view].image.extra : 1);
element.style.setProperty("--height", pixels * bonus + "px");


불러오는 중...
취소
저장