diff --git a/packages/testcafe-models/dataGrid/index.ts b/packages/testcafe-models/dataGrid/index.ts index 71b3956b47a6..73ff116ff616 100644 --- a/packages/testcafe-models/dataGrid/index.ts +++ b/packages/testcafe-models/dataGrid/index.ts @@ -107,10 +107,20 @@ const moveElement = ($element: JQuery, x: number, y: number, isStart = false): v if (offset) { if (isStart) { - triggerPointerDown($element, offset.left, offset.top); + $element + .trigger($.Event('dxpointerdown', { + pageX: offset.left, + pageY: offset.top, + pointers: [{ pointerId: 1 }], + })); } - triggerPointerMove($element, offset.left + x, offset.top + y); + $element + .trigger($.Event('dxpointermove', { + pageX: offset.left + x, + pageY: offset.top + y, + pointers: [{ pointerId: 1 }], + })); } } };