Skip to content

Commit

Permalink
Correction: Use null instead of NaN when stationary
Browse files Browse the repository at this point in the history
This ammends the existing correction clarifying the units and conditions
for the heading property. This matches existing implementations which
return null in this scenario.
  • Loading branch information
reillyeon committed Aug 14, 2024
1 parent 9ae72d3 commit 551519b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,9 @@ <h2>
</dt>
<dd>
A {{double?}} that represents the heading in
degrees, or `null` if not available, or `NaN` if
the device is stationary. Heading measures the
direction in which the device is moving relative to
true north.
degrees, or `null` if not available or the device
is stationary. Heading measures the direction in
which the device is moving relative to true north.
</dd>
</dl>
</li>
Expand Down

0 comments on commit 551519b

Please sign in to comment.