Added support for element based swiping.