Parcourir la source

Fix the overlay not getting cleared properly when zoomed out

master
Fen Dweller il y a 5 ans
Parent
révision
5ca5257cc5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      xray.js

+ 1
- 1
xray.js Voir le fichier

@@ -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 => {


Chargement…
Annuler
Enregistrer