Widget Scritping- Difference between on clicked and on pressed?

According to this stack overflow answer it lies a bit more “complicated”.

There are five events: press, click, release, hover and unhover.

  • The press event is triggered when the mouse button is pushed down.
  • The release event is triggered when the mouse button is released.
  • The clicked event is triggered when the mouse button is pushed down and then released afterwards (both pressed and released have been triggered as well at this point).
  • hover and unhover are probably self-explaining (hover is when the mouse pointer enters the widget and unhover is when it is leaving the widget)
12 Likes