Skip to content

Skia.Gtk Textbox issue: caret position resets while typing and flickering on hovering #6289

Description

@NBRizzoli

Current behavior

While typing in a textbox the caret position randomly resets to the start of the text.
(Only in linux) Hovering on the textbox with the mouse also causes the height of the textbox to flicker; the flickering cotinue while writing.
While the flickering occours the caret doesn't reset, probabily the 2 issues are related.

Expected behavior

Caret doesn't reset.
No flickering while hovering.

How to reproduce it (as minimally and precisely as possible)

Create a new project, add a textbox.

On Windows:

  • Start the Skia.Gtk project and try typing on the textbox

On Windows with WSL2 or Linux

  • Start the Skia.Gtk, hover with the mouse on the textbox, type on the textbox.

Workaround

No workaround found.

Environment

Nuget Package:

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other:

Nuget Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: )
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    difficulty/tbd
    kind/bug
    triage/untriaged
    on Jun 17, 2021
  2. added
    area/skia ✏️
    project/input ⌨️
    and removed
    triage/untriaged
    on Jun 17, 2021
  3. removed their assignment
    on Jan 6, 2022
  4. jeromelaban commented on Mar 9, 2022

    @jeromelaban
    Member

    @MartinZikmund do you know this issue still happens?

  5. Youssef1313 commented on Aug 31, 2022

    @Youssef1313
    Member

    Caret resets for me, but it happens when I type toooooooooooo fast.

  6. MartinZikmund commented on Jan 31, 2023

    @MartinZikmund
    Member

    Yes, this is the issue that still remains in the refactored code. I will resolve it in #10935

  7. added a commit that references this issue on Feb 7, 2023
    f5729d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/skia ✏️difficulty/tbdkind/bugproject/input ⌨️

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions