| 1 | = Drag Tutorial = |
---|
| 2 | |
---|
| 3 | libRocket has a few ways of implementing dragging of elements, such as: |
---|
| 4 | * the <handle> tag, as used by the documents in the sample applications |
---|
| 5 | * setting an element's 'drag' property to 'drag' or 'drag-drop' and listening to the raw drag events ('dragstart', 'dragend', etc) and animating element positions manually |
---|
| 6 | * setting an element's 'drag' property to 'clone' |
---|
| 7 | |
---|
| 8 | This tutorial shows how to use 'drag: clone;' to implement dragging items between multiple inventory windows. |