Skip to content

Conversation

@parthmshah1302
Copy link
Contributor

@parthmshah1302 parthmshah1302 commented Apr 15, 2025

addresses #19

  • Created custom AutoScrollTextEditor NSViewRepresentable to replace SwiftUI TextEditor
  • Implemented smooth auto-scrolling when cursor reaches 80% of visible height
  • Added enhanced scrollbar styling with semi-transparency and hover effects
  • Optimized scroll behavior with debounce and animation for a natural feel
  • Added proper padding in fullscreen mode
  • Fixed cursor position tracking with text container coordinate conversion
autoscroll-freewrite-demo.mov

- Created custom AutoScrollTextEditor NSViewRepresentable to replace SwiftUI TextEditor
- Implemented smooth auto-scrolling when cursor reaches 80% of visible height
- Added enhanced scrollbar styling with semi-transparency and hover effects
- Optimized scroll behavior with debounce and animation for a natural feel
- Added proper padding in fullscreen mode
- Fixed cursor position tracking with text container coordinate conversion
@quiint
Copy link

quiint commented Apr 17, 2025

hi @parthmshah1302, thanks for contributing! testing this i have a bit of an issue where the cursor is when a new entry is started. autoscroll functionality works great though! i added a little video below

Screen.Recording.2025-04-17.at.7.14.23.PM.mov

@parthmshah1302
Copy link
Contributor Author

great catch - thanks for pointing this out. working on fixing this 👍🏽

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.

2 participants