The dismiss gesture might pick up a tap inside the modal view if a control is disabled. Therefore, check the bounds before saying for sure it's a dismiss gesture. Only taps outside should dismiss.