mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
[text] account for scrolling in text selections
Account for any scrolling offset in single line mode when calculating the area that should be selected.
This commit is contained in:
parent
e79fd1055d
commit
cf6c2d9721
@ -962,6 +962,12 @@ cursor_paint (ClutterText *self)
|
||||
|
||||
range_x = ranges[i * 2]
|
||||
/ PANGO_SCALE;
|
||||
|
||||
/* Account for any scrolling in single line mode */
|
||||
if (priv->single_line_mode)
|
||||
range_x += priv->text_x;
|
||||
|
||||
|
||||
range_width = (ranges[i * 2 + 1] - ranges[i * 2])
|
||||
/ PANGO_SCALE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user