Fixed bug where mousedowns were treated incorrectly.