Skip to content

Commit

Permalink
Make the angle vertex first in tab order
Browse files Browse the repository at this point in the history
  • Loading branch information
benchristel committed Aug 2, 2024
1 parent 03f5419 commit 6fcf30b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/perseus/src/widgets/interactive-graphs/graphs/angle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ export function AngleGraph(props: AngleGraphProps) {
<>
{svgLines}
<Angle {...angleParams} />
{/* side 1 */}
<MovablePoint
key={"point-0"}
constrain={getAngleSideConstraint(coords[0], coords[1], snapDegrees || 1)}
point={coords[0]}
onMove={(destination: vec.Vector2) =>
dispatch(actions.angle.movePoint(0, destination))
}
/>
{/* vertex */}
<MovablePoint
key={"point-1"}
Expand All @@ -111,6 +102,15 @@ export function AngleGraph(props: AngleGraphProps) {
dispatch(actions.angle.movePoint(1, destination))
}
/>
{/* side 1 */}
<MovablePoint
key={"point-0"}
constrain={getAngleSideConstraint(coords[0], coords[1], snapDegrees || 1)}
point={coords[0]}
onMove={(destination: vec.Vector2) =>
dispatch(actions.angle.movePoint(0, destination))
}
/>
{/* side 2 */}
<MovablePoint
key={"point-2"}
Expand Down

0 comments on commit 6fcf30b

Please sign in to comment.