Handle Drag events in replayer (#587)

* Handle Drag events in replayer

* add touch move source as well

Co-authored-by: Yash Kumar <yashkumar@Yashs-MacBook-Pro-2.local>
This commit is contained in:
yashkumar18
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 1539d35039
commit a19893cdfa

View File

@@ -783,6 +783,8 @@ export class Replayer {
this.applyMutation(d, isSync);
break;
}
case IncrementalSource.Drag:
case IncrementalSource.TouchMove:
case IncrementalSource.MouseMove:
if (isSync) {
const lastPosition = d.positions[d.positions.length - 1];