Compare commits
2 Commits
910d2df7b5
...
6a89cc4aeb
Author | SHA1 | Date |
---|---|---|
|
6a89cc4aeb | |
|
5d2ddace70 |
|
@ -48,6 +48,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function handleWheel(event: WheelEvent) {
|
function handleWheel(event: WheelEvent) {
|
||||||
|
if (!file) return
|
||||||
if (event.deltaX < 0) {
|
if (event.deltaX < 0) {
|
||||||
secondaryColorIndex = (secondaryColorIndex - 1 + file.canvas.palette.length) % file.canvas.palette.length
|
secondaryColorIndex = (secondaryColorIndex - 1 + file.canvas.palette.length) % file.canvas.palette.length
|
||||||
} else if (event.deltaX > 0) {
|
} else if (event.deltaX > 0) {
|
||||||
|
@ -149,7 +150,6 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 2em;
|
width: 2em;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
border: 2px solid transparent;
|
|
||||||
}
|
}
|
||||||
.entry.hide {
|
.entry.hide {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
Loading…
Reference in New Issue