Skip to content

[bug]: /docs/components/smooth-cursor #737

@talalaslam15

Description

@talalaslam15

Describe the bug
On mobile devices, the cursor from the smooth-cursor component appears at the tapped location, even though it should remain invisible on touch devices. This creates an unintended visual artifact that breaks the mobile UX.

To Reproduce
Steps to reproduce the behavior:

Open the /docs/components/smooth-cursor page on a mobile device

Tap anywhere on the screen

Observe that a cursor appears where you tapped

Expected behavior
The cursor should remain completely invisible on mobile/touch devices. No visual cursor should appear when the user interacts with the screen.

Screenshots

Image

Desktop:
OS: Windows 11
Browser: Google Chrome
Version 138.0.7204.184 (Official Build) (64-bit)

Smartphone:
Simulated on Google Chrome

Additional context
It seems the current logic does not fully account for mobile/touch environments. A conditional check for pointer: coarse or a touch capability check might help disable or hide the cursor properly on such devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions