Hack to ignore mouse events to prevent crashes