fix firefox and IE bugs with swipe. closes #53