moveTo
Move the mouse by an offset of the specified element. If no element is specified, the move is relative to the current mouse cursor. If an element is provided but no offset, the mouse will be moved to the center of the element. If the element is not visible, it will be scrolled into view.
Usage
$(selector).moveTo({ xOffset, yOffset })
Parameters
| Name | Type | Details |
|---|---|---|
optionsoptional | MoveToOptions | moveTo command options |
options.xOffsetoptional | Number | X offset to move to, relative to the center of the element. If not specified, the mouse will move to the center of the element. |
options.yOffsetoptional | Number | Y offset to move to, relative to the center of the element. If not specified, the mouse will move to the center of the element. |