[touch/generic] support swipe gesture detection for multiple pointers

This is a replacement for #2483 and is more complete i.e. it only detects a multi-pointer (currently limited to 2) gesture if both pointers move in the same direction and both fulfil the conditions for a pan gesture to be recognised as a swipe gesture.