Workaround a problem with mouse events in chrome