jQuery.event.special.resized
Throttled resize event, raised after resizing has completed
Usage
$(window).on('resized', function(e, dimensions){
// handle event...
console.log('changed dimensions');
console.log('old width: ' + dimensions.oldWidth);
console.log('new width: ' + dimensions.newWidth);
});
Data on the event
oldWidth: pixel width prior to theresizedeventoldHeight: pixel height prior to theresizedeventoldScrollWidth: pixel scroll width prior to theresizedeventoldScrollHeight: pixel scroll height prior to theresizedeventnewWidth: pixel width after theresizedeventnewHeight: pixel height after theresizedeventnewScrollWidth: pixel scroll width after theresizedeventnewScrollHeight: pixel scroll height after theresizedevent
Options
// throttle duration in ms
$.event.special.resized.defaults = 150