I am using onMouseDown
and onMouseUp
for better control.
I already have onContextMenu
but how I can prevent the right button click on onMouseDown
and onMouseUp
.I only want the left button to be clicked.
because currently 2 events triggering at the same time. My context menu and other function open at the same time.