summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-12-25 20:17:15 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-12-25 20:17:15 (GMT)
commitc7dea872968dccc663429d1843a0e33cac7896d6 (patch)
tree6cc351f99dfaf4ddd91e868453454f2770c0cd7f /doc
parent67bffc15aeaa3d59587bbb081d9190f62c70490a (diff)
downloadtk-c7dea872968dccc663429d1843a0e33cac7896d6.zip
tk-c7dea872968dccc663429d1843a0e33cac7896d6.tar.gz
tk-c7dea872968dccc663429d1843a0e33cac7896d6.tar.bz2
Fix [1660674fff]: arrow reconfig triggers infinite Enter/Leave event sequence, by better documenting the caveat.
Diffstat (limited to 'doc')
-rw-r--r--doc/canvas.n6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/canvas.n b/doc/canvas.n
index 7dbfd19..f446936 100644
--- a/doc/canvas.n
+++ b/doc/canvas.n
@@ -1523,6 +1523,12 @@ ends of the line.
\fBlast\fR (for an arrowhead at the last point of the line), or
\fBboth\fR (for arrowheads at both ends).
This option defaults to \fBnone\fR.
+When requested to draw an arrowhead, Tk internally adjusts the corresponding
+line end point so that the rendered line ends at the neck of the arrowhead
+rather than at its tip so that the line doesn't extend past the edge of the
+arrowhead. This may trigger a \fBLeave\fR event if the mouse is hovering this
+line end. Conversely, when removing an arrowhead Tk adjusts the corresponding
+line point the other way round, which may trigger an \fBEnter\fR event.
.TP
\fB\-arrowshape \fIshape\fR
This option indicates how to draw arrowheads.