fix(mobile): incorrect pointer down event for the touch action

pull/11177/head
charlie 2024-05-06 12:10:03 +08:00
parent d3f135c4c2
commit b31f31bea2
1 changed files with 10 additions and 9 deletions

View File

@ -560,15 +560,16 @@
:on-mouse-move #(reset! *current-idx idx)}
(let [chosen? (= @*current-idx idx)]
(menu-link
{:id (str "ac-" idx)
:tab-index "0"
:class (when chosen? "chosen")
:on-pointer-down (fn [e]
(util/stop e)
(if (and (gobj/get e "shiftKey") on-shift-chosen)
(on-shift-chosen item)
(on-chosen item e)))}
(if item-render (item-render item chosen?) item)))]]
{:id (str "ac-" idx)
:tab-index "0"
:class (when chosen? "chosen")
:on-pointer-down #(util/stop %)
:on-click (fn [e]
(util/stop e)
(if (and (gobj/get e "shiftKey") on-shift-chosen)
(on-shift-chosen item)
(on-chosen item e)))}
(if item-render (item-render item chosen?) item)))]]
(if get-group-name
(if-let [group-name (get-group-name item)]