Author Topic: UIButton doesn't detect middle/right click after update?  (Read 157 times)

sintua

  • Jr. Member
  • **
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 63
    • View Profile
UIButton doesn't detect middle/right click after update?
« on: July 12, 2017, 10:36:42 PM »
I updated from a pretty old version of nGUI and I'm still finding a few strange quirks, one of which is UIButton no longer detects middle/right clicks? It looks like it has code to explicitly ignore this... Why was this changed?

I assume the suggested course of action is to use an eventTrigger's OnClick since that doesn't have such a limitation, but I'm not clear on why UIButton blocks it but eventTrigger doesn't; I don't want to switch all of these to use eventTrigger's just for that one to be changed as well in some later version to match?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 327
  • -Receive: 1153
  • Posts: 22,063
  • Toronto, Canada
    • View Profile
Re: UIButton doesn't detect middle/right click after update?
« Reply #1 on: July 15, 2017, 06:32:18 AM »
Even trigger just forwards events. Button should react differently to left click, right click and middle mouse button though -- it's actually pretty normal behaviour. Middle mouse button doesn't submit a post if you click the "Post" button here, for example.