Fixed support for swipe and pinch.