diff options
author | fvogel <fvogelnew1@free.fr> | 2020-01-18 12:04:35 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-01-18 12:04:35 (GMT) |
commit | e970d02a227279ca90ed80e99e330bbde75d0fd5 (patch) | |
tree | ec154ec3813752ff08ce8f32a433414e7c004e36 /doc | |
parent | ae6b4ba2bf0065b266806a1b3588d3650338a4b1 (diff) | |
parent | c7dea872968dccc663429d1843a0e33cac7896d6 (diff) | |
download | tk-e970d02a227279ca90ed80e99e330bbde75d0fd5.zip tk-e970d02a227279ca90ed80e99e330bbde75d0fd5.tar.gz tk-e970d02a227279ca90ed80e99e330bbde75d0fd5.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.n | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/canvas.n b/doc/canvas.n index 0e41e0e..cd9f56c 100644 --- a/doc/canvas.n +++ b/doc/canvas.n @@ -1524,6 +1524,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. |