瀏覽代碼

Fix the overlay not getting cleared properly when zoomed out

master
Fen Dweller 5 年之前
父節點
當前提交
5ca5257cc5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      xray.js

+ 1
- 1
xray.js 查看文件

@@ -588,7 +588,7 @@ function updateOverlay(points, clicked) {
overlayCtx.globalCompositeOperation = "source-over";

if (!paintMode)
overlayCtx.clearRect(0, 0, w, h);
overlayCtx.clearRect(0, 0, w / window.devicePixelRatio, h / window.devicePixelRatio);

if (!paintMode || clicked) {
points.forEach(point => {


Loading…
取消
儲存