Skip to content

Commit 62524ce

Browse files
committed
Rephrase some comments 📖
1 parent 8ea9b7e commit 62524ce

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/src/examples/gsap-draggable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function App() {
3434

3535
const isDragging = useSnapshot(
3636
// Derives the snapshot. If the Draggable has not yet been created,
37-
// we are sure that the element is not dragging.
37+
// we are sure that the element is not being dragged.
3838
(draggable) => (draggable ? draggable.isDragging : false),
3939
// Handles the subscription.
4040
(draggable, onChange) => {

docs/src/examples/gsap.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export default function App({ autoplay = true }) {
2727

2828
const isActive = useSnapshot(
2929
// Derives the snapshot. If the Animation has not yet been created,
30-
// we can rely on "autoplay" to determine if the animation is playing.
30+
// we can rely on "autoplay" to determine if it will be active when the
31+
// component will mount.
3132
(tween) => (tween ? tween.isActive() : autoplay),
3233
// Handles the subscription.
3334
(tween, onChange) => {

docs/src/guide/use-source.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ function useAnimation({ autoplay }) {
7272
]);
7373

7474
const isPlaying = useSnapshot(
75-
// If the Animation source has not yet been created, we can rely on
76-
// "autoplay" to determine if the animation is playing.
75+
// If the Animation has not yet been created, we can rely on "autoplay"
76+
// to determine if it will play when the component will mount.
7777
(animation) => (animation ? animation.isPlaying() : autoplay),
7878
// Subscribes to "Play"/"Pause" events.
7979
// We'll dig into it in the next chapter.

0 commit comments

Comments
 (0)