Avoiding refresh on mozVisibility events and listening oncontactschange