Skip to content
Crutiatix edited this page Apr 10, 2017 · 4 revisions

A table containing attributes defining a behavior of the element when a mouse is holding it and moving.

  • Attribute of:
  • Attributes:
    • enabled = [bool] (false) - Enable dragging.
    • fixed = [table] ({x=false,y=false}) - define if should be dragging in a given axis fixed or not
      • x = [bool] (false)
      • y = [bool] (false)
    • bounds = [table] (element position) - set dimensions of a line/box, in which is dragging allowed
      • x = [table]
        • [1] = [number] (element.x) - minimal / from horizontal position
        • [2] = [number] (element.x) - maximal / to horizontal position
      • y = [table]
        • [1] = [number] (element.y) - minimal / from vertical position
        • [2] = [number] (element.y) - maximal / to vertical position
      • relative = [bool] (false) - if true so bound's dimensions are translated acording to actual anchored element position
Clone this wiki locally