added switch to (not) register apple gesture events