-
Notifications
You must be signed in to change notification settings - Fork 0
making changes to cursor glide over text #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
changing caret cursor behavior and overall making cursor smoother to make typing feel better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a smoother cursor experience for typing by introducing a "caret" cursor mode with glide animations. The changes enable the cursor to smoothly transition between characters instead of jumping abruptly, and disable blinking during active typing to reduce visual distraction.
Key Changes:
- Added caret cursor mode with smooth glide animations and typing-aware blink behavior
- Implemented overlay-based cursor positioning system for precise control
- Enhanced cursor mode synchronization across components with dynamic state management
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| public/js/cursor.js | Introduced overlay cursor system, typing state tracking, and cursor mode synchronization logic |
| public/css/styles.css | Added CSS custom properties and styles for cursor overlay animations |
| client/src/components/Typing.jsx | Integrated cursor style state management and typing activity detection |
| client/src/components/Typing.css | Added caret-specific styles and animation controls for different cursor modes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
|
|
||
| /** | ||
| * Track whether the user is actively typing to control blink behaviour |
Copilot
AI
Oct 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'behaviour' to 'behavior'.
| * Track whether the user is actively typing to control blink behaviour | |
| * Track whether the user is actively typing to control blink behavior |
|
|
||
| // Cursor-specific duration (caret snappier) | ||
| overlay.style.setProperty('--cursor-glide-duration', useCaret ? '95ms' : '95ms'); | ||
| overlay.style.setProperty('--cursor-glide-duration', useCaret ? '85ms' : '110ms'); |
Copilot
AI
Oct 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Magic numbers '85ms' and '110ms' should be extracted as named constants or CSS custom properties to improve maintainability and ensure consistency with values defined elsewhere (e.g., line 16 in styles.css defines '--cursor-glide-duration: 95ms').
complete migratino of backend database, directory structure, basic things like git ignore, components, and placeholder frontend for db testing
making changes to cursor glide over text
changing caret cursor behavior and overall making cursor smoother to make typing feel better