cljfx

https://github.com/cljfx/cljfx
jlmr 2019-12-30T15:45:39.020400Z

@vlaaad, thanks it worked! Another question: I implemented mouse dragging according to this example: https://github.com/cljfx/cljfx/blob/master/examples/e11_mouse_dragging.clj. However, with the nodes I’m using this does not work quite right. When starting to drag, the node’s upper-left corner first jumps to the mouse, after that dragging works normally. I know I have to calculate some offset, but have not yet figured it out. Any tips?

vlaaad 2019-12-31T15:03:25.020600Z

Hi! Sorry, I'm on vacation now. There should be offsets in drag start event

jlmr 2020-01-01T17:49:37.020800Z

Enjoy your holiday! I haven’t fixed it yet, but will keep trying.

jlmr 2020-01-03T10:58:36.024Z

Hi @vlaaad, haven’t managed to fix it yet, quite sure I’m missing something obvious. What is the drag start event you mention? :on-drag-detected?

vlaaad 2020-01-03T11:01:35.024200Z

Hmm, I think :on-mouse-pressed should do

jlmr 2020-01-03T11:11:25.025Z

Haven’t looked at that one yet. Will do so later today. Thanks!

jlmr 2020-01-03T12:57:47.025200Z

Fixed it! Thanks for the help!

vlaaad 2020-01-03T21:12:47.025500Z

Cool, you are welcome! Do you work on something you plan to open source? I'm interested to know where cljfx is applied 🙂