Update documentation

This commit is contained in:
Insality
2020-05-04 00:51:44 +03:00
parent 1e568c2fa6
commit 10c4ee2151
2 changed files with 26 additions and 29 deletions

View File

@@ -44,24 +44,23 @@ M["button"] = {
M["drag"] = {
DRAG_DEADZONE = 10,
DRAG_DEADZONE = 10, -- Size in pixels of drag deadzone
}
M["scroll"] = {
ANIM_SPEED = 0.2, -- gui.animation speed to point
SCROLL_WHEEL_SPEED = 10,
DEADZONE = 20,
BACK_SPEED = 0.35, -- Lerp speed of return to soft position
FRICT = 0.93, -- mult for free inert
FRICT_HOLD = 0.79, -- mult. for inert, while touching
INERT_THRESHOLD = 2.5, -- speed to stop inertion
INERT_SPEED = 30, -- koef. of inert speed
EXTRA_STRECH_SIZE = 100, -- extra size in pixels outside of scroll (stretch effect)
POINTS_DEADZONE = 20, -- Speed to check points of interests in no_inertion mode
BACK_SPEED = 0.35, -- Lerp speed of return to soft position
SCROLL_WHEEL_SPEED = 20,
EXTRA_STRECH_SIZE = 100, -- size of outside zone (back move)
SMALL_CONTENT_SCROLL = true,
SMALL_CONTENT_SCROLL = true, -- If true, content node with size less than view node size can be scrolled
}
@@ -71,11 +70,6 @@ M["progress"] = {
}
M["progress_rich"] = {
DELAY = 1, -- delay in seconds before main fill
}
M["checkbox"] = {
on_change_state = function(self, node, state)
local target = state and 1 or 0