Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 2
    the event.stop(); will preventDefault and stopPropagation so the mousedown won't bubble into click. furthermore, it clones and applies tuff to a new element. so replace the event stop with this.fireEvent('click', event); to bubble it up manually - though strictly speaking, a click is on mouseup. Commented Sep 9, 2014 at 12:24
  • Look, I commented the line with event.stop, but the result is the same Commented Sep 9, 2014 at 12:27
  • 2
    meh. jsfiddle.net/dimitar/qsjj1jpe/4 Commented Sep 9, 2014 at 12:29
  • Thanks. And for the dblclick? this.fireEvent('dblclick', event); is considered a simple click event. Commented Sep 9, 2014 at 12:37
  • i don't know. recommend you drop mootools drag and drop and use something light that can be scaled and can work with touch events etc - eg interactjs.io - it won't affect anything as it's very very thin and won't attach/detach/affect any events. Commented Sep 9, 2014 at 13:38