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


1 answer

Staff August 3, 2017

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.

  1. Wow, that was fast.Works perfectly. Thanks a lot.Oliver

Please login or Register to Submit Answer