This class store the dialog position and expose methods to move the dialog
The constructor
The container element of the dialog
The top bar element of the dialog
A unique identifier given to the mover for drag and drop operations
A flag to detect if the dialog is on top of the screen
Center the dialog o the screen
Move the dialog to a drag event point and set the drag start values to this point
Name | Type | Description |
---|---|---|
dragEventOrTouch | Event or Touch | The drag event or Touch with the drag start values |
eventType | null or String | The type of the event that have triggered the call to the method |
Move the dialog on the screen
Name | Type | Description |
---|---|---|
newDialogX | Number | The new X position of the dialog in pixels |
newDialogY | Number | The new Y position of the dialog in pixels |
Move the dialog to it's last position after a hide followed by a show
Move the dialog to the top left corner of the screen
Set the drag start values
Name | Type | Description |
---|---|---|
dragEventOrTouch | Event or Touch | The drag event or Touch with the drag start values |
The X screen coordinate of the upper left corner of the dialog
The Y screen coordinate of the upper left corner of the dialog
The start drag X screen coordinate of the mouse
The start drag Y screen coordinate of the mouse
A unique identifier given to the mover for drag and drop operations
Compute the new position of the dialog on the screen
Name | Type | Description |
---|---|---|
newDialogX | Number | The new X position of the dialog in pixels |
newDialogY | Number | The new Y position of the dialog in pixels |
Finish the move dialog. Adapt the style of the dialog