HISE Logo Forum
    • Categories
    • Register
    • Login

    if (event.doubleClick && event.rightClick) not working as expected

    Scheduled Pinned Locked Moved Bug Reports
    1 Posts 1 Posters 97 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aaronventure
      last edited by

      Flagging this as an issue because if(event.drag && event.rightClick) works as expected (only executes when control is dragged with right click. event.rightClick is bool and returns 1 if right click is down. So why doesn't it work with double click?

      event.rightClick will return 0 from inside the if (event.doubleClick) (obvioulsly).

      The workaround is to surround if (event.doubleClick) with

       if (event.rightClick)
              {
              	this.data.rightClick = true;
              }
      

      above and

      if (!event.rightClick)
              {
              	this.data.rightClick = false;
              }
      

      below.

      commit 3235dac - - bump version to 3.6.0

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      27

      Online

      1.8k

      Users

      12.0k

      Topics

      104.5k

      Posts