Oskar - Yes, I mean use native drag 'n drop events if the browser supports it, and fallback to javascript if unavailable. Seems to me that for speed and efficiency, mootools (and any other framework) should first detect browser support and use it if available. This concerns ANY browser-native features. The framework may create a wrapper to make things consistent, but the heavy-lifting is done by Mr. browser.
Arian - By adding to Element.NativeEvents, does mootools _know_ to not use its own logic for managing events? Of course, I'm not just referring to "events" here, but essentially any feature. Thanks for your responses. I'll check into mootools-htmlx. ~Philip On Wed, Jun 8, 2011 at 4:03 AM, Arian Stolwijk <[email protected]> wrote: > Adding those events to Element.NativeEvents is all you need to get it > working: > > > https://github.com/arian/mootools-form-upload/blob/master/Source/Form.MultipleFileInput.js#L15-17 > > As a side note, in the event callback, 'event.event' is the original event > object that might contain some drag specific information which you might > want to use. So > > el.addEvent('drop', function(event){ > console.log(event); // mootools extended event > console.log(event.event); // original browser event > }); > > > On Wed, Jun 8, 2011 at 10:53 AM, Oskar Krawczyk > <[email protected]>wrote: > >> Define "support". You can add support by extending the Events object in >> MooTools. >> >> If you're more thinking about using Native d-n-d evens on modern browsers >> and fallback to JS-based on IE, I highly doubt it'll ever be released with >> MooTools-core or -more. >> >> That said, there's a new initiative (not an official project) called >> MooTools-HTMLX (https://github.com/csuwldcat/mootools-htmlx), that I have >> very high hopes for, so you might be interested in following it and even >> contributing. >> >> Best, >> Oskar >> >> On Jun 8, 2011, at 3:08 AM, Philip Thompson wrote: >> >> Is there any discussion for Mootools to support browser-native drag* >> events? If so, is it slated for a particular release? >> >> Thanks, >> ~Philip >> >> -- >> http://lonestarlightandsound.com/ >> >> >> > -- http://lonestarlightandsound.com/
