Fix defaults for swipe duration

Add a default duration for swipe action. If not given, `steps` becomes 0, which gets interpreted as "don't do anything", or sometimes "tap at origin". Neither is wanted. Deals with issue #2488.