This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-25
Channels
- # aleph (1)
- # beginners (72)
- # boot (3)
- # cider (28)
- # cljs-dev (193)
- # cljsrn (11)
- # clojure (73)
- # clojure-brasil (3)
- # clojure-gamedev (2)
- # clojure-russia (6)
- # clojure-spec (30)
- # clojure-uk (26)
- # clojured (1)
- # clojurescript (32)
- # code-reviews (9)
- # core-async (4)
- # datascript (5)
- # datomic (9)
- # dirac (38)
- # fulcro (23)
- # garden (11)
- # leiningen (1)
- # luminus (11)
- # lumo (6)
- # off-topic (17)
- # quil (2)
- # re-frame (2)
- # reagent (3)
- # ring (3)
- # shadow-cljs (12)
- # spacemacs (4)
- # sql (2)
- # unrepl (85)
- # vim (3)
Hello reagent, what is a simple way to delay :on-click
event to see first if :on-double-click
event is triggered?
[:div
{:on-click "listen to double-click event, within 500ms, if so on-double-click-fn, if not, on-click-fn"
:on-double-click "on-double-click-fn"}]
?Thanks!
I got a nice answer from Taylor Wood on SO https://stackoverflow.com/questions/48969496/in-clojurescript-delay-on-click-event-and-trigger-only-if-on-double-click/48969589#48969589