Added threshold for resize events