Fix #748, properly detect mouse up events

Thanks to @andreywix for hunting this down!