summaryrefslogtreecommitdiffstats
path: root/doc/canvas.n
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-01-18 12:04:51 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-01-18 12:04:51 (GMT)
commit31f67224a92cd43e51a0bf7131764f06eb30b742 (patch)
treeb05010e59ba92066a567159134dde8242cc62b0b /doc/canvas.n
parentb88a824e0bd64340b2da7531721414b4e4b94319 (diff)
parente970d02a227279ca90ed80e99e330bbde75d0fd5 (diff)
downloadtk-31f67224a92cd43e51a0bf7131764f06eb30b742.zip
tk-31f67224a92cd43e51a0bf7131764f06eb30b742.tar.gz
tk-31f67224a92cd43e51a0bf7131764f06eb30b742.tar.bz2
Fix [1660674fff]: arrow reconfig triggers infinite Enter/Leave event sequence, by better documenting the caveat.
Diffstat (limited to 'doc/canvas.n')
-rw-r--r--doc/canvas.n6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/canvas.n b/doc/canvas.n
index 49dcb80..623154f 100644
--- a/doc/canvas.n
+++ b/doc/canvas.n
@@ -1591,6 +1591,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.