hello to all you 4v wizards,
since short i am trial and erroring towards more vvvv knowledge.
i try to build a simple ‘drag and drop’ functionality.
the action i achieved so far is the following:
- with pressed mouse button i can drag an object to another position
- by releasing the mouse button the object stays at the new cursor position
- by clicking the mouse button the object jumps to the current cursor position
the point 3 is what bothers me. the object should only be dragable with the cursor being over it.
i am using one ‘mouse’ node, two ‘switch value output’ nodes, one ‘circle’ node and one ‘render GDI’ node.
maybe someone can point me to the right direction.