It's a good API idea, but I think it's pointless to suggest new abstractions when Web Components and Mutation Observers exist. You can custom-roll today (and in short order) a "move" event for all common browsers.
New additions to HTML should focus on either expanding its fundamental capability, or making gargantuan tasks smaller. Library code can handle the rest. On Thu, Dec 4, 2014 at 2:37 AM, Behrang Saeedzadeh <behran...@gmail.com> wrote: > Hi, > > Are there any plans to add resize and movement event listeners for DOM > elements? > > elem.addEventListener("move", function(e) { > console.log(o.target.oldLocation); > console.log(o.target.newLocation); > }); > > > Are there technical limitations why these events or not being defined for > elements? > > Best regards, > Behrang >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss