Changed the swipe relatedTarget if condition a bit to be more optimal and check for existance of node.contains (newish DOM Level 4 thing).