Skip to content

fix(smooth-cursor): disable smooth cursor on touch devices#922

Merged
Yeom-JinHo merged 2 commits intomagicuidesign:mainfrom
Yeom-JinHo:fix/smooth-cursor-mobile
Mar 12, 2026
Merged

fix(smooth-cursor): disable smooth cursor on touch devices#922
Yeom-JinHo merged 2 commits intomagicuidesign:mainfrom
Yeom-JinHo:fix/smooth-cursor-mobile

Conversation

@Yeom-JinHo
Copy link
Member

Description

This PR fixes the smooth-cursor behavior reported in #737.
The custom cursor no longer appears after taps on touch/coarse-pointer devices, and the demo/docs now reflect that intended behavior.

Changes

  • Added a pointer capability check in SmoothCursor so it only runs on hover-capable fine pointers
  • Switched cursor tracking from mousemove to pointermove and ignored non-mouse pointer types
  • Prevented the custom cursor from rendering on touch-first devices
  • Updated the demo copy to clarify that the component is disabled on touch devices
  • Updated the docs to mention that touch-first devices are ignored automatically
  • Regenerated the related registry output files

Motivation

Issue #737 reports that the custom cursor appears at the tap position on mobile devices, which creates an unintended visual artifact and hurts the mobile UX.
This change keeps the component limited to environments where a custom cursor is actually appropriate, such as desktop devices with a mouse or trackpad.

Breaking Changes

None.

@Yeom-JinHo Yeom-JinHo self-assigned this Mar 12, 2026
@vercel
Copy link

vercel bot commented Mar 12, 2026

@Yeom-JinHo is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

@Yeom-JinHo Yeom-JinHo merged commit 5c622e1 into magicuidesign:main Mar 12, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant