|
|
|
|
This static object simplifies the dragging process. Simplify put before it would take
many lines of code to make an html element dragable now with this object it only takes
1. This object also performs multiple drag!
Try and drag a layer (on the right) and notice that it is placed above all other layers and will follow the mouse until the mouse up event is called. Press the control key and click a layer, while holding the control key and select more layers. Now drag the current layer and notice that all other layers are dragged with it, that's right, that's how a multiple drag is performed. Try and drag a layer out of the screen and notice that the layer cannot be dragged outside the drag area. While dragging a border is placed around layers. The object is fully customizable, the following attributes can be set:
xDrag is static and should not be instantized with new but instead used by name i.e XDrag. |
Code!