I have made an element draggable and would like to fire an event, when the element is moved to certain position. Do you have any hints or suggestions, how to realize this?
Any help will be appreciated.
Best regards
Oliver
-
Good question. Also waiting for an answer.https://www.lancaster-painters.com/
1 answer
You can add some logic in the “Mouse Up” event handler, and trigger your own event there. Below is an example:
If the rectangle is drag to left enough (X<100), the custom event “MyEvent” will be triggered and show a message window.
-
Wow, that was fast.Works perfectly. Thanks a lot.Oliver