// Detect if the user touches the screen and disable/enable the scanner accordingly
behavior:HitTestBehavior.opaque,
onPointerDown:(_)=>_scannerEnabled.value=false,
onPointerUp:(_)=>_scannerEnabled.value=true,
onPointerCancel:(_)=>_scannerEnabled.value=true,
// A stack containing the image feed and the crosshair
// The location of the crosshair must be at the center of the MobileScanner, otherwise the detection area and the visual representation do not line up.