diff --git a/docs/index.html b/docs/index.html
index 3ffa283..c7116f4 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -36,6 +36,7 @@
druid.button
druid.checkbox
druid.checkbox_group
+ druid.drag
druid.grid
druid.hover
druid.input
@@ -93,6 +94,10 @@
druid.checkbox_group
Checkbox group module
+
+ druid.drag
+ Component to handle drag action on node.
+
druid.grid
Component to handle placing components by row and columns.
@@ -195,7 +200,7 @@
generated by LDoc 1.4.6
-
Last updated 2020-04-18 14:39:17
+
Last updated 2020-05-04 00:51:46
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Druid
+
+
+
+
Contents
+
+
+
+
Modules
+
+
Topics
+
+
+
+
+
+
+
Module druid.drag
+
Component to handle drag action on node.
+
Drag have correct handling for multitouch and swap
+ touched while dragging. Drag will be processed even
+ the cursor is outside of node, if drag is already started
+
+
+
+
+
+
+
+ Events
+ Component events
+
+
+ Fields
+ Components fields
+
+
+ Style
+ Component style params
+
+
+
+
+
+
+
+
+
+
+
+
+ init(node, on_drag_callback)
+
+
+ Drag component constructor
+
+
+ Parameters:
+
+ node
+ node
+ GUI node to detect dragging
+
+ on_drag_callback
+ function
+ Callback for ondrag event(self, dx, dy)
+
+
+
+
+
+
+
+
+
+
+ set_click_zone(zone)
+
+
+ Strict drag click area. Useful for
+ restrict events outside stencil node
+
+
+ Parameters:
+
+ zone
+ node
+ Gui node
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+ Component events
+
+
+ Fields:
+
+ on_touch_start
+ druid_event
+ (self) Event on touch start
+
+ on_touch_end
+ druid_event
+ (self) Event on touch end
+
+ on_drag_start
+ druid_event
+ (self) Event on drag start
+
+ on_drag
+ druid_event
+ (self, dx, dy) Event on drag progress
+
+ on_drag_end
+ druid_event
+ (self) Event on drag end
+
+
+
+
+
+
+
+
+
+
+ Fields
+
+
+ Components fields
+
+
+ Fields:
+
+ is_touch
+ bool
+ Is component now touching
+
+ is_drag
+ bool
+ Is component now dragging
+
+ can_x
+ bool
+ Is drag component process vertical dragging. Default - true
+
+ can_y
+ bool
+ Is drag component process horizontal. Default - true
+
+ x
+ number
+ Current touch x position
+
+ y
+ number
+ Current touch y position
+
+ touch_start_pos
+ vector3
+ Touch start position
+
+
+
+
+
+
+
+
+
+
+ Style
+
+
+ Component style params
+
+
+ Fields:
+
+ DRAG_DEADZONE
+ number
+ Distance in pixels to start dragging
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
generated by LDoc 1.4.6
+
Last updated 2020-05-04 00:51:46
+
+
+
diff --git a/docs/modules/component.html b/docs/modules/component.html
index 37fd89c..aae8da2 100644
--- a/docs/modules/component.html
+++ b/docs/modules/component.html
@@ -43,6 +43,7 @@
druid.button
druid.checkbox
druid.checkbox_group
+
druid.drag
druid.grid
druid.hover
druid.input
@@ -478,7 +479,7 @@
generated by LDoc 1.4.6
-
Last updated 2020-04-18 14:39:17
+
Last updated 2020-05-04 00:51:46
diff --git a/docs/modules/druid.back_handler.html b/docs/modules/druid.back_handler.html
index 0bc2cc0..7e95a33 100644
--- a/docs/modules/druid.back_handler.html
+++ b/docs/modules/druid.back_handler.html
@@ -44,6 +44,7 @@
druid.button
druid.checkbox
druid.checkbox_group
+
druid.drag
druid.grid
druid.hover
druid.input
@@ -217,7 +218,7 @@
generated by LDoc 1.4.6
-
Last updated 2020-04-18 14:39:17
+
Last updated 2020-05-04 00:51:46
diff --git a/docs/modules/druid.blocker.html b/docs/modules/druid.blocker.html
index 02feafd..721f904 100644
--- a/docs/modules/druid.blocker.html
+++ b/docs/modules/druid.blocker.html
@@ -44,6 +44,7 @@
druid.button
druid.checkbox
druid.checkbox_group
+
druid.drag
druid.grid
druid.hover
druid.input
@@ -236,7 +237,7 @@
generated by LDoc 1.4.6
-
Last updated 2020-04-18 14:39:17
+
Last updated 2020-05-04 00:51:46
diff --git a/docs/modules/druid.button.html b/docs/modules/druid.button.html
index b59dd1c..883e585 100644
--- a/docs/modules/druid.button.html
+++ b/docs/modules/druid.button.html
@@ -44,6 +44,7 @@
druid.button
druid.checkbox
druid.checkbox_group
+
druid.drag
druid.grid
druid.hover
druid.input
@@ -416,7 +417,7 @@
generated by LDoc 1.4.6
-
Last updated 2020-04-18 14:39:17
+
Last updated 2020-05-04 00:51:46
diff --git a/docs/modules/druid.checkbox.html b/docs/modules/druid.checkbox.html
index 1411d1c..ea9bf32 100644
--- a/docs/modules/druid.checkbox.html
+++ b/docs/modules/druid.checkbox.html
@@ -44,6 +44,7 @@
druid.button
druid.checkbox
druid.checkbox_group
+
druid.drag
druid.grid
druid.hover
druid.input
@@ -279,7 +280,7 @@
generated by LDoc 1.4.6
-
Last updated 2020-04-18 14:39:17
+
Last updated 2020-05-04 00:51:46
diff --git a/docs/modules/druid.checkbox_group.html b/docs/modules/druid.checkbox_group.html
index 0a7c625..ee56ba9 100644
--- a/docs/modules/druid.checkbox_group.html
+++ b/docs/modules/druid.checkbox_group.html
@@ -44,6 +44,7 @@
druid.button
druid.checkbox
druid.checkbox_group
+
druid.drag
druid.grid
druid.hover
druid.input
@@ -241,7 +242,7 @@
generated by LDoc 1.4.6
-
Last updated 2020-04-18 14:39:17
+
Last updated 2020-05-04 00:51:46
diff --git a/docs/modules/druid.drag.html b/docs/modules/druid.drag.html
new file mode 100644
index 0000000..a25b190
--- /dev/null
+++ b/docs/modules/druid.drag.html
@@ -0,0 +1,286 @@
+
+
+
+
+
Defold Druid UI Library
+
+
+
+