CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
510 stars 78 forks source link

🐞 Cursor remains arrow when over editor #107

Closed austincondiff closed 1 year ago

austincondiff commented 1 year ago

Description

Cursor remains an arrow when hovering over editor.

To Reproduce

Hover over the editor.

Expected behavior

When hovering over editor, cursor should change to an I-beam to indicate editable text.

ben-p-commits commented 1 year ago

I am not able to replicate this when CodeEdit is in focus... My cursor is changing properly.

When it is not in focus, it stays as a pointer- but is that not the default behavior?

austincondiff commented 1 year ago

https://user-images.githubusercontent.com/806104/211112469-c9f04c67-aec1-4c6b-977f-80124d764a3e.mov

Maybe it is a macOS bug on my end because it is like this in Xcode as well...

https://user-images.githubusercontent.com/806104/211112755-d1168735-b274-4ba1-9cf2-64f03701d7bd.mov

If you look close, you can see the cursor briefly flash to the I-beam. It appears that it flashes when I cross the boundary of a selection. Very strange. I can close this if you are not experiencing this.

foss- commented 1 year ago

Why close? This is trivial to reproduce here with CodeEdit in focus. Clearly the cursor should not be an arrow in this case:

1

matthijseikelenboom commented 1 year ago

Weirdly enough, it seems that is related to how fast you move your mouse pointer into the text editing area. And when the cursor is in text selection mode, it changes back to a pointer when interacting with the text editing area.

This issue should probably be moved to CodeEditTextView

austincondiff commented 1 year ago

Transferring to CodeEditTextView now.

austincondiff commented 1 year ago

I am noticing this in more apps than CodeEdit. I am starting to think it is a macOS bug. Can anyone confirm?

ben-p-commits commented 1 year ago

Confirmed in a handful of web browsers in various html fields and the URL bar...

austincondiff commented 1 year ago

I've had to restart my machine to fix this. I'd like to report this bug to Apple but I have no idea what causes it and how to fix it other than restarting. Closing for now.