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 theresized
eventoldHeight
: pixel height prior to theresized
eventoldScrollWidth
: pixel scroll width prior to theresized
eventoldScrollHeight
: pixel scroll height prior to theresized
eventnewWidth
: pixel width after theresized
eventnewHeight
: pixel height after theresized
eventnewScrollWidth
: pixel scroll width after theresized
eventnewScrollHeight
: pixel scroll height after theresized
event
Options
// throttle duration in ms
$.event.special.resized.defaults = 150