Fix crash relating to pressing both mouse buttons at the same time