Learn / Documentation / Script Reference / SingleClickMode
Manual

SingleClickMode

enumeration in Doozy.Engine.UI

Description

The SingleClickMode enum is used as a setting for the UIButton OnClick trigger that mark if a click should be registered instantly, without checking if it's a double click, or not
See Also: UIButton

Properties

  • Instant – The click will get registered instantly without checking if it’s a double click or not. This is the normal behavior of a single click in any OS. Use this if you want to make sure a single click will get executed before a double click (dual actions). (usage example: SingleClick – selects, DoubleClick – executes an action)

  • Delayed – The click will get registered after checking if it’s a double click or not (it has a small delay).  If it’s a double click, the single click will not get triggered. Use this if you want to make sure the user does not execute a single click before a double click. The downside is that there is a delay when executing the single click (the delay is the double click register interval), so make sure you take that into account