Workarounds for Yosemite's mouseReleased bug.