Bug 290485 - text selection lags behind the mouse position
Summary: text selection lags behind the mouse position
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.8.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-03 11:45 UTC by Martin Koller
Modified: 2012-10-04 11:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2012-01-03 11:45:16 UTC
Version:           0.0.1 (using Devel) 
OS:                Linux

Since 4.8 I have the following problem:
The text selection does not correctly start below my mouse cursor.
E.g. when starting to select the text "-graphicssystem native"
and the mouse is over/at the left end of the - character, the selection starts
with the character " left of it, and when I move the mouse to the right, the
selection itself lags behind the mouse position. E.g. when I'm already with the
mouse over the ending " the selection only is done until "-graphicssystem nativ


This was detected while checking bug 290371
There you can read the response from Christoph Feck:

This is because Qt 4.8 now defaults to subpixel precision when layouting text
positions. Konqueror has to make sure it computes the same widths for
layouting/selecting as Qt uses for rendering, or alternatively force integer
font metrics (which would make it look worse, but work correctly).

Reproducible: Always

Steps to Reproduce:
see above

Actual Results:  
wrong selection

Expected Results:  
Select exactly the text which is under the mouse, as was done in all previous KDE versions.