mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-24 16:54:03 +00:00
Fix searchbox popover on touch devices (#773)
* Add delay on touch pointer event when opening searchbox * Add playwright mobile test
This commit is contained in:
@@ -98,7 +98,13 @@ const newSearchBoxEnabled = computed(
|
||||
)
|
||||
const showSearchBox = (e: LiteGraphCanvasEvent) => {
|
||||
if (newSearchBoxEnabled.value) {
|
||||
showNewSearchBox(e)
|
||||
if (e.detail.originalEvent?.pointerType === 'touch') {
|
||||
setTimeout(() => {
|
||||
showNewSearchBox(e)
|
||||
}, 128)
|
||||
} else {
|
||||
showNewSearchBox(e)
|
||||
}
|
||||
} else {
|
||||
canvasStore.canvas.showSearchBox(e.detail.originalEvent as MouseEvent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user