We were generating click events always using the primary mouse button instead of the provided button, and with the buttons field set to that provided button.
iso-2022-jp