Prevent rotation after level ending
This commit is contained in:
@@ -119,7 +119,9 @@ function loadGrid() {
|
|||||||
btnMirror.onmousedown = (e) => {
|
btnMirror.onmousedown = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
rotateMirror(x, y, e.button === 2);
|
if(!isLevelFinished){
|
||||||
|
rotateMirror(x, y, e.button === 2);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
btnMirror.oncontextmenu = (e) => e.preventDefault();
|
btnMirror.oncontextmenu = (e) => e.preventDefault();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user