Skip to content

Commit d24fb0c

Browse files
committed
Bug fixes remove logging
1 parent 9e173db commit d24fb0c

File tree

9 files changed

+34
-11
lines changed

9 files changed

+34
-11
lines changed

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
color: #fff;
164164
}
165165
main > h2 > button:focus::before {
166+
pointer-events: none;
166167
content: '';
167168
position: absolute;
168169
top: -1px;

src/pg/annoy/annoy.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,15 @@ div {
5252
}
5353

5454
[part=close]:focus::before {
55+
pointer-events: none;
5556
content: '';
56-
position: absolute;
57-
top: -1px;
58-
right: -1px;
59-
bottom: -1px;
60-
left: -1px;
61-
border-radius: 50%;
62-
box-shadow: 0 0 0 3px var(--pg-search-focus-glow, rgb(79, 143, 249, 0.6));
57+
position: absolute;
58+
top: -1px;
59+
right: -1px;
60+
bottom: -1px;
61+
left: -1px;
62+
border-radius: 50%;
63+
box-shadow: 0 0 0 3px var(--pg-search-focus-glow, rgb(79, 143, 249, 0.6));
6364
}
6465

6566
[part=close] svg {

src/pg/button/button.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
box-shadow: 0 0 0 3px var(--pg-search-focus-glow, rgb(79, 143, 249, 0.6));
4646
}
4747
[part="button"]:focus::before {
48+
pointer-events: none;
4849
content: '';
4950
position: absolute;
5051
top: -1px;

src/pg/buttonLink/buttonLink.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
box-shadow: 0 0 0 3px var(--pg-search-focus-glow, rgb(79, 143, 249, 0.6));
5050
}
5151
[part="button"]:focus::before {
52+
pointer-events: none;
5253
content: '';
5354
position: absolute;
5455
top: -1px;

src/pg/inputFileLocal/inputFileLocal.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
}
4747

4848
[part="label"]:focus::before {
49+
pointer-events: none;
4950
content: '';
5051
position: absolute;
5152
top: -1px;

src/pg/inputPixelEditor/inputPixelEditor.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22
display: inline-flex;
33
}
44

5+
[part="wrapper"] {
6+
display: flex;
7+
position: relative;
8+
outline: 0;
9+
}
10+
11+
[part="wrapper"]:focus::before {
12+
pointer-events: none;
13+
content: '';
14+
position: absolute;
15+
top: -1px;
16+
right: -1px;
17+
bottom: -1px;
18+
left: -1px;
19+
border-radius: 0.125rem;
20+
box-shadow: 0 0 0 3px var(--pg-search-focus-glow, rgb(79, 143, 249, 0.5));
21+
}
22+
523
canvas {
624
touch-action: none;
725
user-select: none;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<canvas part="canvas" tabindex="0" draggable="false"></canvas>
1+
<div part="wrapper" tabindex="0">
2+
<canvas part="canvas" draggable="false"></canvas>
3+
</div>

src/pg/inputPixelEditor/inputPixelEditor.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ export default class PgInputPixelEditor extends HTMLElement {
436436
this.#x = newX;
437437
this.#y = newY;
438438
const color = event.buttons === 32 ? 0 : 1;
439-
console.log(this.#colors, this.#colors[color], event.buttons);
440439
switch (this.#inputMode) {
441440
case InputMode.Pixel:
442441
this.#setPixel(newX, newY, color);
@@ -576,7 +575,6 @@ export default class PgInputPixelEditor extends HTMLElement {
576575
// editing layer to main canvas
577576
this.#context.drawImage(this.#isEditing ? this.#editLayer : this.#noEditLayer, 0, 0);
578577
}
579-
console.log('enter');
580578
}
581579

582580
handlePointerLeave(event: MouseEvent) {
@@ -587,7 +585,6 @@ export default class PgInputPixelEditor extends HTMLElement {
587585
// editing layer to main canvas
588586
this.#context.drawImage(this.#isEditing ? this.#editLayer : this.#noEditLayer, 0, 0);
589587
}
590-
console.log('leave');
591588
}
592589

593590
#updateGrid() {

src/pg/tabs/tabs.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
}
5959

6060
[part="button"]:focus::before {
61+
pointer-events: none;
6162
content: '';
6263
position: absolute;
6364
top: -1px;

0 commit comments

Comments
 (0)