Modify event rectF check