fixed disabled mouse events
merged with kj's changes