perf: run on nextTick only if necessary

This commit is contained in:
Julien Calixte
2025-07-12 17:39:00 +02:00
parent 1918ebc921
commit b93dfbd824
3 changed files with 14 additions and 16 deletions

View File

@@ -17,15 +17,6 @@ export const useNoteOverlay = (
const displayNoteOverlay = computed(() => {
const valueIndex = toValue(index)
if (valueIndex === 1) {
console.log(
valueIndex,
x.value > valueIndex * NOTE_WIDTH,
x.value,
valueIndex * NOTE_WIDTH,
)
}
if (isMobile.value) {
return y.value > valueIndex * noteHeight.value
} else {