Skip to content

Commit

Permalink
Fix typos in mouse/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sindreij authored Jan 21, 2023
1 parent 4e633da commit 4b507d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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, listeneing 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 @@ -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, listeneing 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 4b507d1

Please sign in to comment.