summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-23 08:10:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-23 08:10:17 (GMT)
commit5164db768ac805564630f25daae0357dad688b0c (patch)
tree02b16388dd456900404afbc7ffdf89df6679c607
parente36e203b72faafb52349e6d7422c568bce80ab3c (diff)
downloadtk-5164db768ac805564630f25daae0357dad688b0c.zip
tk-5164db768ac805564630f25daae0357dad688b0c.tar.gz
tk-5164db768ac805564630f25daae0357dad688b0c.tar.bz2
Fix bug in TIP #474 implementation: Wrong bindings for Mousewheel in text widgets
-rw-r--r--library/text.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/text.tcl b/library/text.tcl
index e4f00d1..5d41dc3 100644
--- a/library/text.tcl
+++ b/library/text.tcl
@@ -442,16 +442,16 @@ bind Text <B2-Motion> {
set ::tk::Priv(prevPos) {}
bind Text <MouseWheel> {
- tk::MouseWheel y %D -3.0 pixels
+ tk::MouseWheel %W y %D -3.0 pixels
}
bind Text <Option-MouseWheel> {
- tk::MouseWheel y %D -0.3 pixels
+ tk::MouseWheel %W y %D -0.3 pixels
}
bind Text <Shift-MouseWheel> {
- tk::MouseWheel x %D -3.0 pixels
+ tk::MouseWheel %W x %D -3.0 pixels
}
bind Text <Shift-Option-MouseWheel> {
- tk::MouseWheel x %D -0.3 pixels
+ tk::MouseWheel %W x %D -0.3 pixels
}
# ::tk::TextClosestGap --