Added swipe support for smartphones and tablets.