fix event handling issues (such as when resizing when not animating)