handlePointer method
- PointerSample sample
Handles a pointer sample and updates the controller state.
PointerSample.position must be provided in view/screen coordinates (the
same space as PointerEvent.localPosition). The controller converts it to
scene coordinates using scene.camera.offset.
The controller processes at most one active pointer per mode; additional pointers are ignored until the active one ends.
Implementation
void handlePointer(PointerSample sample) {
if (mode == CanvasMode.move) {
_moveModeEngine.handlePointer(sample);
} else {
_drawModeEngine.handlePointer(sample);
}
}