How to handle both buttons (left and right simultaneously) with JS / jQuery?

I am trying to create a Minesweeper game using jQuery, I successfully process left and right clicks with event.which, but is it possible to detect left and right clicks at the same time?

+3
source share
1 answer

I doubt that you will ever get both at the same time, as soon as you step first, even if after a few ms.

set the flag when one of them is set, and check this flag in the other

+1
source

Source: https://habr.com/ru/post/1779746/


All Articles