Dragging with mouse events and Pointer Events用鼠标事件和 Pointer Events 实现拖拽

Move both blocks inside their bounds. The Pointer Events version also accepts touch, pen and arrow keys.

在各自的区域里拖动两个方块。Pointer Events 版本还支持触屏、手写笔和方向键。

Classic mouse listeners传统的鼠标事件监听

Pointer capture指针捕获