Clear sight line before drawing after unlocking
This commit is contained in:
parent
3e521e2f64
commit
a4888a3e09
@ -250,6 +250,7 @@ export function start(el) {
|
|||||||
sourceCell = selected.parentElement;
|
sourceCell = selected.parentElement;
|
||||||
|
|
||||||
if (isOnBoard && (!sl || sl.classList.contains('active')) && sourceCell != cell) {
|
if (isOnBoard && (!sl || sl.classList.contains('active')) && sourceCell != cell) {
|
||||||
|
clearSightLine();
|
||||||
drawSightLine(sourceCell, cell);
|
drawSightLine(sourceCell, cell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user