On Fri, Feb 24, 2006 at 02:02:09PM +0100, Joost Verburg wrote:
> Martin Vermeer wrote:

...
 
> The area could also overlap a bit with the left side of the ( bracket. 
> Try clicking between two ordinary characters, say a and b (ab). Clicking 
> on the left side of b still gets the cursor between a and b.
> 
> The same thing applies to clicking on the right side of the last 
> bracket. There are a few pixels between the bracket and the position 
> where you can click to get the mouse there. If the bracket is the last 
> part of the equation there is only about 1 pixel left to click on.

This should improve things (untested)

- Martin
 
Index: math_nestinset.C
===================================================================
--- math_nestinset.C    (revision 13276)
+++ math_nestinset.C    (working copy)
@@ -1029,7 +1029,10 @@
        if (dist_min == 0) {
                // hit inside cell
                for (pos_type i = 0, n = ar.size(); i < n; ++i)
-                       if (ar[i]->covers(x, y))
+                       // Provide an extra inert sliver to get in-between:
+                       if (ar[i]->covers(x, y) 
+                               && x >= ar[i]->xo() + 3
+                               && x <= ar[i]->xo() + ar[i]->width() - 3)
                                return ar[i].nucleus()->editXY(cur, x, y);
        }
        return this;

Attachment: pgpBIaFMDHcue.pgp
Description: PGP signature

Reply via email to