Element onResize and onMove events

# Behrang Saeedzadeh (10 years ago)

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 , Behrang

# Brian Blakely (10 years ago)

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.