pointerdown on virtualitems

This commit is contained in:
Diego Imbert
2025-04-15 17:18:01 +02:00
parent cbdcc74795
commit 6cdcd57be0
2 changed files with 2 additions and 2 deletions
@@ -33,7 +33,7 @@
onTop ? 'z-[901]' : ''
)}
style="width: 275px; max-height: 38px; background-color: {bgColor} !important;"
on:click={() => {
on:pointerdown={() => {
if (selectable) {
if (id) {
dispatch('select', id)
@@ -25,7 +25,7 @@
class="flex w-full flex-row gap-1 px-2 p-1 items-center {selected
? 'outline outline-2 outline-gray-600 rounded-sm dark:bg-white/5 dark:outline-gray-400'
: ''}"
on:click={() => {
on:pointerdown={() => {
dispatch('select')
}}
>