diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-15 13:15:14 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-15 13:15:14 (GMT) |
commit | 418fba3d3d0db14e0f74b19da9c077903f7dbdcd (patch) | |
tree | 9228e48dd6be2573326e1506c130a0932a45ac66 /library/scrlbar.tcl | |
parent | 405efb77f1e112a07406b05b1dfca6b8622cc9c9 (diff) | |
parent | 51da8fabbfe52df8ccaa273c48fcf127f35f79fd (diff) | |
download | tk-418fba3d3d0db14e0f74b19da9c077903f7dbdcd.zip tk-418fba3d3d0db14e0f74b19da9c077903f7dbdcd.tar.gz tk-418fba3d3d0db14e0f74b19da9c077903f7dbdcd.tar.bz2 |
Merge 8.7. Make test-cases on MacOS and X11 pass (win32 not tested yet)
Diffstat (limited to 'library/scrlbar.tcl')
-rw-r--r-- | library/scrlbar.tcl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl index 2b3503a..a25194a 100644 --- a/library/scrlbar.tcl +++ b/library/scrlbar.tcl @@ -39,7 +39,7 @@ bind Scrollbar <Leave> { } %W activate {} } -bind Scrollbar <1> { +bind Scrollbar <Button-1> { tk::ScrollButtonDown %W %x %y } bind Scrollbar <B1-Motion> { @@ -57,13 +57,13 @@ bind Scrollbar <B1-Leave> { bind Scrollbar <B1-Enter> { # Prevents <Enter> binding from being invoked. } -bind Scrollbar <2> { +bind Scrollbar <Button-2> { tk::ScrollButton2Down %W %x %y } -bind Scrollbar <B1-2> { +bind Scrollbar <B1-Button-2> { # Do nothing, since button 1 is already down. } -bind Scrollbar <B2-1> { +bind Scrollbar <B2-Button-1> { # Do nothing, since button 2 is already down. } bind Scrollbar <B2-Motion> { @@ -84,10 +84,10 @@ bind Scrollbar <B2-Leave> { bind Scrollbar <B2-Enter> { # Prevents <Enter> binding from being invoked. } -bind Scrollbar <Control-1> { +bind Scrollbar <Control-Button-1> { tk::ScrollTopBottom %W %x %y } -bind Scrollbar <Control-2> { +bind Scrollbar <Control-Button-2> { tk::ScrollTopBottom %W %x %y } @@ -130,16 +130,16 @@ bind Scrollbar <<LineEnd>> { } bind Scrollbar <MouseWheel> { - tk::ScrollByUnits %W v [expr {%D/-30.0}] + tk::ScrollByUnits %W hv [expr {%D/-30.0}] } bind Scrollbar <Option-MouseWheel> { - tk::ScrollByUnits %W v [expr {%D/-3.0}] + tk::ScrollByUnits %W hv [expr {%D/-3.0}] } bind Scrollbar <Shift-MouseWheel> { - tk::ScrollByUnits %W h [expr {%D/-30.0}] + tk::ScrollByUnits %W hv [expr {%D/-30.0}] } bind Scrollbar <Shift-Option-MouseWheel> { - tk::ScrollByUnits %W h [expr {%D/-3.0}] + tk::ScrollByUnits %W hv [expr {%D/-3.0}] } # tk::ScrollButtonDown -- |