Remove dot in no-grid mode.
This commit is contained in:
parent
292ca0798c
commit
0fb1991b5a
1 changed files with 7 additions and 3 deletions
|
|
@ -387,6 +387,7 @@ function setGrid() {
|
||||||
gridEl.style.backgroundImage = "";
|
gridEl.style.backgroundImage = "";
|
||||||
gridEl.style.backgroundSize = "";
|
gridEl.style.backgroundSize = "";
|
||||||
gridEl.style.boxShadow = "none";
|
gridEl.style.boxShadow = "none";
|
||||||
|
dotEl.classList.add('d-none');
|
||||||
|
|
||||||
if (type === 'fullGrid') {
|
if (type === 'fullGrid') {
|
||||||
gridEl.style.backgroundImage =
|
gridEl.style.backgroundImage =
|
||||||
|
|
@ -415,6 +416,7 @@ function setGrid() {
|
||||||
|
|
||||||
} else { // noGrid
|
} else { // noGrid
|
||||||
gridEl.style.boxShadow = "inset 0 0 0 1px #ccc";
|
gridEl.style.boxShadow = "inset 0 0 0 1px #ccc";
|
||||||
|
dotEl.classList.add('d-none');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -517,9 +519,11 @@ gridEl.addEventListener('pointermove', (e) => {
|
||||||
|
|
||||||
coordsEl.classList.remove('d-none');
|
coordsEl.classList.remove('d-none');
|
||||||
|
|
||||||
|
if (getActiveType() !== 'noGrid') {
|
||||||
dotEl.classList.remove('d-none');
|
dotEl.classList.remove('d-none');
|
||||||
dotEl.style.top = `${renderY}px`;
|
dotEl.style.top = `${renderY}px`;
|
||||||
dotEl.style.left = `${renderX}px`;
|
dotEl.style.left = `${renderX}px`;
|
||||||
|
}
|
||||||
|
|
||||||
const type = getActiveType();
|
const type = getActiveType();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue