mouse events, possible to know which button (left, right)? RRS feed

  • Question

  • We wrote a library I am migrating (from v6.3). In it, there is logic to perform computations during mousedown->mousemove events. Right-clicking during this operation cancels the computation.

    In my mousedown handler, how do I determine which mouse button triggered the event?

    • Edited by Posef Wednesday, June 14, 2017 1:18 PM
    Tuesday, June 13, 2017 11:14 PM


  • yes, isSecondary and isPrimary properties of the event argument was just added. Should be in experimental already. The main release branch is in the middle of an update. Not sure if this in there yet or not. If it isn't it will be in the next update.

    [Blog] [twitter] [LinkedIn]

    Wednesday, June 14, 2017 3:27 PM