Re: Element onResize and onMove events

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 <behrangsa@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
>

Received on Saturday, 14 February 2015 20:16:36 UTC