Add Drag tool
There is already `DragAndDropTool(from_id, to_id)` that allows moving element to others. We also need `DragTool(id, offset_x, offset_y)` which lets move elements by pixels to the side. This is required for working with sliders (e.g. price slider on Amazon):
<img width="276" height="115" alt="Image" src="https://github.com/user-attachments/assets/73db1b26-7f45-4080-9fb5-e7cd282bacfd" />
```py
al.do("drag from price 10px to the right
# DragTool(id="123", offset_x=10, offset_y=0)
```
关闭于 2026-03-18 0 条评论