MiniTest触touch_start,touch_move元素实际接touches没有xy坐标?
MiniTest调用touch_start,touch_move方法后,而实际元素实touch_start与touch_move接受的事件中touches没有xy坐标,而手滑动是有xy坐标的,就会导致小程序中用业务用的xy坐标,使用MiniTest就模拟不了 changed_touch = touch = {
"identifier": 0,
"pageX": move_to_client_x,
"pageY": move_to_client_y,
"clientX": move_to_client_x,
"clientY": move_to_client_y,
"x": move_to_client_x,
"y": move_to_client_y,
"screenX": move_to_client_x + 12,
"screenY": move_to_client_y,
}
canvas_el.touch_move(touches=[touch], changed_touches=[changed_touch])
实际元素接收的事件[图片]中没有x,y的值,通过手动滑动是存在的[图片]而业务的代码是 _touchstart(e) {
let currentPoint = {
x: e.touches[0].x,
y: e.touches[0].y
}
请问这是问题吗? 还是minitest不支持