Fix color picker's broken gradient stop selection due to Svelte 5 not treating components as classes

This commit is contained in:
Keavon Chambers
2026-01-26 11:50:01 -08:00
parent 5e61d59e50
commit 3488d5b8e7
2 changed files with 12 additions and 13 deletions
+3
View File
@@ -40,6 +40,9 @@ export function createTooltipState(editor: Editor) {
// Before we schedule a new future tooltip appearance, we clear the existing one
if (tooltipTimeout) clearTimeout(tooltipTimeout);
// Don't show tooltips while mouse buttons are pressed
if (e.buttons !== 0) return;
// Schedule the tooltip to appear at this cursor position after a delay
tooltipTimeout = setTimeout(() => {
update((state) => {