@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?
Hi! Sorry, I'm on vacation now. There should be offsets in drag start event
Enjoy your holiday! I haven’t fixed it yet, but will keep trying.
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
?
Hmm, I think :on-mouse-pressed should do
Haven’t looked at that one yet. Will do so later today. Thanks!
Fixed it! Thanks for the help!
Cool, you are welcome! Do you work on something you plan to open source? I'm interested to know where cljfx is applied 🙂