Fixed selecting the correct dot

This commit is contained in:
mr. m
2025-02-20 15:56:00 +01:00
parent 1b091bb07f
commit bc863f3f2c
2 changed files with 1 additions and 2 deletions

View File

@@ -188,7 +188,7 @@
transition: transform 0.2s;
transform: translate(-50%, -50%);
&.primary {
&:first-of-type {
width: 28px;
height: 28px;
border-width: 3px;

View File

@@ -309,7 +309,6 @@
existingPrimaryDot.ID = this.dots.length;
existingPrimaryDot.element.classList.remove('primary');
}
dot.classList.add('primary');
}
const colorFromPos = this.getColorFromPosition(relativePosition.x, relativePosition.y);