fix(web): disable click on inactive lines
This commit is contained in:
@@ -70,6 +70,9 @@
|
|||||||
class:bg-yellow-600={colors[i] === Color.YELLOW}
|
class:bg-yellow-600={colors[i] === Color.YELLOW}
|
||||||
class:bg-grey-600={colors[i] === Color.GREY}
|
class:bg-grey-600={colors[i] === Color.GREY}
|
||||||
onclick={() => {
|
onclick={() => {
|
||||||
|
if (!active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (cursor === i) {
|
if (cursor === i) {
|
||||||
colors[cursor] = (colors[cursor] + 1) % 3;
|
colors[cursor] = (colors[cursor] + 1) % 3;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user