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.
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.
We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. spokane roofing contractors