add support for pan gesture