diff --git a/README.md b/README.md index faedb14..40f8ae6 100644 --- a/README.md +++ b/README.md @@ -316,7 +316,7 @@ endElementId | string | no | Same as in [windows: click](#windows-click) | 123e4 endX | number | no | Same as in [windows: click](#windows-click) | 100 endY | number | no | Same as in [windows: click](#windows-click) | 100 modifierKeys | string[] or string | no | Same as in [windows: click](#windows-click) | win -durationMs | number | no | The number of milliseconds to wait between pressing the left mouse button and moving the cursor to the ending drag point. 500ms by default. | 700 +durationMs | number | no | The number of milliseconds to wait between pressing the left mouse button and moving the cursor to the ending drag point. 5000ms by default. | 7000 ### windows: hover diff --git a/lib/commands/gestures.js b/lib/commands/gestures.js index 6dd413c..a210642 100644 --- a/lib/commands/gestures.js +++ b/lib/commands/gestures.js @@ -420,7 +420,7 @@ commands.windowsScroll = async function windowsScroll (opts) { * depress while the drag is being performed. Supported key names are: Shift, Ctrl, Alt, Win. * For example, in order to keep Ctrl+Alt depressed while clicking, provide the value of * ['ctrl', 'alt'] - * @property {number} durationMs [500] The number of milliseconds to wait between pressing + * @property {number} durationMs [5000] The number of milliseconds to wait between pressing * the left mouse button and moving the cursor to the ending drag point. */ @@ -437,7 +437,7 @@ commands.windowsClickAndDrag = async function windowsClickAndDrag (opts) { endElementId, endX, endY, modifierKeys, - durationMs = 500, + durationMs = 5000, } = opts ?? {}; const screenSize = await getVirtualScreenSize(); diff --git a/package.json b/package.json index 2ad1a61..d54cab6 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "semantic-release": "^22.0.5", "sinon": "^17.0.0", "ts-node": "^10.9.1", - "typescript": "^5.1.6", + "typescript": "~5.2", "webdriverio": "^8.0.2" } }