Skip to content
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

Pointer / Cursor flicker with Catalyst #251

Open
mmackh opened this issue Jan 3, 2023 · 3 comments
Open

Pointer / Cursor flicker with Catalyst #251

mmackh opened this issue Jan 3, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@mmackh
Copy link
Contributor

mmackh commented Jan 3, 2023

What happened?

Screen.Recording.2023-01-04.at.00.53.18.mov

The courser flickers on Catalyst when changing lines. I think this is related to UITextInput / yPos, height of frame. Also highlighting is rather slow (almost looks like there is an animation + delay).

What are the steps to reproduce?

  • Populate TextView
  • Move between the lines
  • Observe mouse change between standard cursor and caret

What is the expected behavior?

No flicker. Would be happy to fix.

@mmackh mmackh added the bug Something isn't working label Jan 3, 2023
@simonbs
Copy link
Owner

simonbs commented Jan 5, 2023

Thanks for reporting this. Both points are great.

It seems that the cursor changes from the text beam to the regular cursor when in between two lines. I'm unsure why this happens but it could be that one of the functions in the UITextInput conformance does not return exactly what UIKit expects when running under Catalyst.

You're right that the animation that occurs during selection seems alien on a Mac. Runestone isn't explicitly adding an animation. UIKit adds this animation. I'm unsure how we can disable it.

I don't have much time right now to look into these two issues but I agree that they should be addressed to make Runestone feel more natural when running on the Mac.

@simonbs simonbs removed their assignment Jan 5, 2023
@mmackh
Copy link
Contributor Author

mmackh commented Jan 5, 2023

Will try working on resolving these points and things I discover along the way. I'm building an IDE on Catalyst internally and your framework is the only native viable option without starting from scratch. Thank you!

@simonbs
Copy link
Owner

simonbs commented Jan 5, 2023

Will try working on resolving these points and things I discover along the way.

Thanks! Let me know if I can be of assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants