refactor: comment out mouse enter event handling for highlighted items

This commit is contained in:
Mega Yu
2026-02-28 21:41:32 +08:00
parent 30c52f9907
commit 2e7d22d5ea

View File

@@ -782,10 +782,10 @@
(handle-action :default state e)
(when-let [on-click (:on-click item)]
(on-click e)))
:on-mouse-enter (fn [_e]
(when (= :mouse @(::focus-source state))
(when (not= item @(::highlighted-item state))
(reset! (::highlighted-item state) item))))
;; :on-mouse-enter (fn [_e]
;; (when (= :mouse @(::focus-source state))
;; (when (not= item @(::highlighted-item state))
;; (reset! (::highlighted-item state) item))))
:on-mouse-move (fn [e]
(let [dx (or (.-movementX e) 0)
dy (or (.-movementY e) 0)