I know one should use both, event.button
and event.which
as a safe side for cross-browser compatibility concern.
But still, I am puzzled. I am not able to comprehend the exact context where I should use which mouse event property, MouseEvent.button
or MouseEvent.which
, and where should I avoid the one.
Also, the quirks associated with different browsers(eg the values associated with those)
Well organized comprehensive details will be greatly appreciated.