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

Start of selection in entry is shifted when moving too fast #3804

Closed
2 tasks done
NicolasPerrenoud opened this issue Apr 10, 2023 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@NicolasPerrenoud
Copy link
Contributor

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

When I try to select text in an entry and move the cursor too fast the start of the selection is shifted

How to reproduce

  1. Press the mouse on the text of an entry
  2. Move the mouse fast to the right
  3. The selection doesn't start where you clicked

Screenshots

No response

Example code

package main

import (
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)

func main() {
a := app.New()
w := a.NewWindow("Test")

entry := widget.NewEntry()
entry.SetText("0123456789")
w.SetContent(entry)

w.ShowAndRun()

}

Fyne version

develop 9bcdda0

Go compiler version

1.18.4

Operating system and version

Windows 11

Additional Information

No response

@NicolasPerrenoud NicolasPerrenoud added the unverified A bug that has been reported but not verified label Apr 10, 2023
NicolasPerrenoud added a commit to NicolasPerrenoud/fyne that referenced this issue Apr 10, 2023
andydotxyz added a commit that referenced this issue Apr 11, 2023
fix #3804 correctly calculate the start position
@andydotxyz
Copy link
Member

Fix landed on develop, thanks so much @NicolasPerrenoud

@Jacalz Jacalz added bug Something isn't working and removed unverified A bug that has been reported but not verified labels Jun 1, 2023
@Jacalz Jacalz added this to the Fixes (v2.3.x) milestone Jun 1, 2023
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

3 participants