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

Incorrect mouse cursor when hovering over text field #78

Open
dundalek opened this issue May 26, 2023 · 0 comments
Open

Incorrect mouse cursor when hovering over text field #78

dundalek opened this issue May 26, 2023 · 0 comments

Comments

@dundalek
Copy link

Repro based on https://github.com/lilactown/humble-starter with following code:

(def *state (atom {}))

(def app
  (ui/default-theme
   {}
   (ui/focus-controller
    (ui/center
     (ui/column
      (ui/width 300
        (ui/text-field (cursor/cursor *state :input-1)))
      (ui/width 300
        (ui/text-field (cursor/cursor *state :input-2)))
      (ui/gap 0 1)
      (ui/width 300
        (ui/text-field (cursor/cursor *state :input-3))))))))

Steps:

  1. Position mouse over second input
  2. Move mouse up to the first input

Expected: mouse cursor drawn as Beam shape
Actual: mouse cursor drawn as Arrow shape

repro.mp4

Another observation is that it does not happen when moving from the third input to the second input, which contains a gap between them (even 1px seems to be enough for things to behave correctly).

ok.mp4

So it seems the issue seems to be when moving between two inputs directly without mousing over another element in between.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant