Skip to content

Commit

Permalink
Merge pull request #288 from sindreij/patch-1
Browse files Browse the repository at this point in the history
Fix typos in mouse/README.md
  • Loading branch information
thetarnav authored Jan 21, 2023
2 parents 4e633da + 7eb22f9 commit f8d88ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/mouse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ A collection of primitives, capturing current mouse cursor position, and helping

##### Non-reactive primitives:

- [`makeMousePositionListener`](#makeMousePositionListener) - Attaches event listeners to provided targat, listeneing for changes to the mouse/touch position.
- [`makeMouseInsideListener`](#makeMouseInsideListener) - Attaches event listeners to provided targat, listening for mouse/touch entering/leaving the element.
- [`makeMousePositionListener`](#makeMousePositionListener) - Attaches event listeners to provided target, listening for changes to the mouse/touch position.
- [`makeMouseInsideListener`](#makeMouseInsideListener) - Attaches event listeners to provided target, listening for mouse/touch entering/leaving the element.

##### Calculations:

Expand All @@ -37,7 +37,7 @@ yarn add @solid-primitives/mouse

## `createMousePosition`

Attaches event listeners to provided targat, providing a reactive up-to-date position of the cursor on the page.
Attaches event listeners to provided target, providing a reactive up-to-date position of the cursor on the page.

#### Usage

Expand Down Expand Up @@ -65,7 +65,7 @@ By default `createMousePosition` is listening to `touch` events as well. You can
// disables following touch position – only registers touch start
const pos = createMousePosition(window, { followTouch: false });

// disables listeneing to any touch events
// disables listening to any touch events
const pos = createMousePosition(window, { touch: false });
```

Expand Down Expand Up @@ -131,7 +131,7 @@ function createPositionToElement(

###### Added id `@2.0.0`

Attaches event listeners to provided targat, listeneing for changes to the mouse/touch position.
Attaches event listeners to provided target, listening for changes to the mouse/touch position.

```ts
const clear = makeMousePositionListener(el, pos => console.log(pos), { touch: false });
Expand All @@ -143,7 +143,7 @@ clear();

###### Added id `@2.0.0`

Attaches event listeners to provided targat, listening for mouse/touch entering/leaving the element.
Attaches event listeners to provided target, listening for mouse/touch entering/leaving the element.

```ts
const clear = makeMouseInsideListener(el, inside => console.log(inside), { touch: false });
Expand Down

0 comments on commit f8d88ff

Please sign in to comment.