fix iOS click delay and bootstrap menu collapse