@skrillex1224/playwright-toolkit 2.1.60 → 2.1.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -555,10 +555,10 @@ var SCROLL_DIRECTION = {
555
555
  UNKNOWN: "unknown"
556
556
  };
557
557
  var DEFAULT_SCROLL_OPTIONS = {
558
- maxSteps: 20,
559
- minStep: 150,
560
- maxStep: 400,
561
- maxDurationMs: 3500
558
+ maxSteps: 12,
559
+ minStep: 220,
560
+ maxStep: 600,
561
+ maxDurationMs: 5e3
562
562
  };
563
563
  var SAME_POSITION_THRESHOLD_PX = 2;
564
564
  var SAME_POSITION_LIMIT = 3;
@@ -669,10 +669,10 @@ var Humanize = {
669
669
  * @param {import('playwright').Page} page
670
670
  * @param {string|import('playwright').ElementHandle|import('playwright').Locator} target - CSS 选择器、元素句柄或 Locator
671
671
  * @param {Object} [options]
672
- * @param {number} [options.maxSteps=20] - 最大滚动步数
673
- * @param {number} [options.minStep=150] - 单次滚动最小步长
674
- * @param {number} [options.maxStep=400] - 单次滚动最大步长
675
- * @param {number} [options.maxDurationMs=3500] - 最大滚动耗时上限
672
+ * @param {number} [options.maxSteps=12] - 最大滚动步数
673
+ * @param {number} [options.minStep=220] - 单次滚动最小步长
674
+ * @param {number} [options.maxStep=600] - 单次滚动最大步长
675
+ * @param {number} [options.maxDurationMs=5000] - 最大滚动耗时上限
676
676
  */
677
677
  async humanScroll(page, target, options = {}) {
678
678
  const {