After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 123761 - "Move mouse and click left" has unwanted side effects in case of an editable text
"Move mouse and click left" has unwanted side effects in case of an editable ...
Status: RESOLVED FIXED
Product: gnopernicus
Classification: Deprecated
Component: srcore
unspecified
Other Linux
: Normal normal
: ---
Assigned To: remus draica
remus draica
Depends on:
Blocks:
 
 
Reported: 2003-10-03 12:25 UTC by Adi Dascal
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (437 bytes, patch)
2003-10-09 09:30 UTC, remus draica
none Details | Review

Description Adi Dascal 2003-10-03 12:25:19 UTC
"Move mouse and click left" mapped on the position switches is not well
behaved in case of an editable text, where the movement of the mouse and
the "left click" action generate the movement of the caret.

In this case the mouse is moved to the central position of the character
and the application (for instance gedit) decides to move the caret. But, 
coordinates are integer numbers and an average means a float, so when the
middle position is rounded, the cursor might land on the first half or the
second half of the character and the application will move the mouse
accordingly : sometimes before the character (which is the good behavior
ONLY for a language that is written from left to right) and sometimes after
the character (which is the good behavior ONLY for a language that is
written from right to left).

This makes the gnopernicus application to appear that is doing things
unpredictible, even if the mouse cursor - graphically - land on the center
of the character:
Example1:
When in gedit's text box (TXT), if, say, "abcde" is entered and then the
routing key associated with 'c' is pressed, the cursor goes to "d" rather
than to 'c'.
Example2:
When in gedit's text box (TXT), if, say, "iii" is entered and then the
routing key associated with the first character of the string is pressed,
the cursor goes to the second and so on.
Comment 1 Adi Dascal 2003-10-08 15:02:10 UTC
Same behavior is present in Java applications like StylePad.
Comment 2 remus draica 2003-10-09 09:30:01 UTC
Created attachment 20589 [details] [review]
proposed patch
Comment 3 remus draica 2003-10-09 09:48:15 UTC
Patch commited to CVS.
Comment 4 bill.haneman 2003-10-09 10:46:47 UTC
Adi: is there a corresponding 'move mouse and click right' ?
And have you talked to Thomas about how this impacts users of
right-to-left languages like Arabic (I think you have some Saudi users
of BAUM products)?

I wonder if the correct behavior should depend on the RTL encoding of
the text in question.  I believe that we should be exposing explicit
text-direction changes as TextAttributes in at-spi (though we might
not have any test cases yet).

Perhaps an additional RFE should be filed on this topic.