I'm using the CSS3 resize property to create a vertically scrollable div:
.mydiv {
resize: vertical
overflow: auto;
}
Chrome puts a little set of diagonal hatches in the bottom right corner of the div which I can now use to resize it.
Is there any way to detect the resize in JavaScript? I've tried using a DOM4 Mutation Observer on the div's attributes but it doesn't fire anything. I can use mouse events on the div but it's hacky (mousedown doesn't fire so I have to listen to all mousemove's and detect if it's near that corner.)