-
Notifications
You must be signed in to change notification settings - Fork 974
Second click doesnt deselect the text and place the cursor in between the URL text #8472
Comments
@bsclifton could you triage? Seems bad but I didn't repro on linux or mac. |
@bbondy alternatively you can open a new tab click on one of the top tiles and before the URL is loaded click on the URLbar which causes the URL text to be selected and then subsequent clicks doesn't deselect the URL text. |
@srirambv can you retest this on the new 0.15.305 release? I'm curious how it behaves after:
Thanks 😄 |
@bsclifton No changes in 0.15.305 |
Works correct when system DPI is set to 100% on Windows |
Another report from user in community https://community.brave.com/t/click-in-url-bar-is-annoying/4506 |
+1 from #9872 Issue is easily reproduced while at 125% DPI. Problem does not happen at 100% DPI |
I went back to older versions and the last version where this worked as expected was 0.13.5 You can eventually click a place where the cursor does set. When logging events, I when this happens, a I think a successful click happens when you DO NOT click on the letters themselves. To test this, you can bump up the font-weight to |
Appending the following flags does get the click working as expected... however, the app no longer is sized correctly (it renders itself at 100% rather than the scaled DPI size). |
I narrowed down the issue some more. I created a simple project which only has a textbox using muon quick (using v4.4.9 of course). This works perfectly as expected. It seems problem is isolated to browser-laptop I deleted items from the DOM and noticed that I could get the URL bar working as expected. After narrowing down more, I found that the URL bar would work as expected by removing this single line:
edit: this might be a red herring, since removing this does cause a JavaScript error (which stops processing). But it does at least give a clue |
Digging in more, the "fix" (not actually a fix- just causes URL bar to behave properly, but app is broken) I mentioned above works for the URL bar because it prevents this line from running:
The click handler for the frame webcontents may be interfering with the webcontents that the URLbar (and the rest of the UI) is using |
+1 from user @stephenkru via #10840 |
bbondy [11:04 PM]
This calls into Example the y-coord is 21 when I click, it first does *1.75 to give 36.75, floors that, it is 36. It finds the SelectionController in webkit has on tolerance for the pixels being off by 1 or 2, it looks for an exact match only. A simple fix would be in the [11:09] [11:14]
[11:14] [11:15] [11:16] [11:17] For the SelectionController line of code, just pasting here for searchability in case we ever have to come back to it for a different similar problem. This is the line on the renderer side that fails because of the different pixel values:
|
This will be fixed in muon builds 4.3.19 or higher so moving to 0.18.x hotfix 2. |
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
Second click doesnt deselect the text and place the cursor in between the URL text
Platform (Win7, 8, 10? macOS? Linux distro?):
Windows 10 x64
Brave Version (revision SHA):
Brave 0.15.0
rev 8e63cc0
Steps to reproduce:
Actual result:
URL text selection is difficult on Windows
Expected result:
Second click should deselect the text and place the cursor in between the URL text
Will the steps above reproduce in a fresh profile? If not what other info can be added?
Yes
Is this an issue in the currently released version?
Not checked
Can this issue be consistently reproduced?
Yes
Extra QA steps:
1.
2.
3.
Screenshot if needed:
Any related issues:
cc: @bsclifton
The text was updated successfully, but these errors were encountered: