Closed xiuqijix closed 6 years ago
From the Generic Sensor spec, since
The value of all latest reading entries is initially set to null
I would say, distance value would initially (or when there is no object in sensing range) be null
It'd be logical for the attribute to be null if not within the sensing range.
Proposal: add the following to https://w3c.github.io/proximity/#proximity-sensor-distance:
If the object is outside the sensing distance, it must return null.
Comments?
I agree, that will be clearer for end user.
I submitted a PR to address this issue (and #29), see: https://github.com/w3c/proximity/pull/31
Thanks @anssiko, the issue had been addressed in https://github.com/w3c/proximity/pull/31, close it.
In previous version, the value is defined between the maximum sensing distance and the minimum sensing distance:
In latest spec, the value isn't limited but there is a sensing range description:
I want to know when there is no object in the sensing range, what's the distance value?