A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://Tarektouati.github.io/vue-use-web/functions/mouse-position.html below:

Website Navigation


Mouse Position | useWeb

# Mouse Position

This API provides access to the x and y of the mouse cursor position.

# State

The useMousePosition function exposes the following reactive state:

State Type Description x Number The mouse cursor position along the x-axis. y Number The mouse cursor position along the y-axis.

Note!

By default the updates the state are throttled by 100ms to keep things snappy but you can configure that.

# Config

useMousePosition function takes an options object as an optional parameter.

# Example # Demo

Credits: Codepen by Chuloo


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4