fix a bug with gestire events in firefox