Handling touch gestures and using UI effects