Fix pan interaction in firefox