better mouse click detection