Ignore the release event if the press event has been handled.