浏览代码

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"; overlayCtx.globalCompositeOperation = "source-over";


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


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


正在加载...
取消
保存