Skip to content

Commit f6ae1bb

Browse files
committed
Fix bug in color interpolation mouse move
1 parent ca43a9c commit f6ae1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ColorInterpolation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class ColorInterpolation extends LitElement {
6161
const x = (event.clientX - rect.left) / rect.width;
6262
const newColor = this.colorGradient.getColorAt(
6363
x,
64-
ColorLerpMode[mode as keyof typeof ColorLerpMode]
64+
ColorLerpMode[mode.toUpperCase() as keyof typeof ColorLerpMode]
6565
);
6666
this.setActiveColor(ActiveColorSide.NONE);
6767
this.setColor(newColor);

0 commit comments

Comments
 (0)