summaryrefslogtreecommitdiffstats
path: root/library/ttk/scrollbar.tcl
diff options
context:
space:
mode:
authorbll <brad.lanam.comp@gmail.com>2020-08-20 22:50:13 (GMT)
committerbll <brad.lanam.comp@gmail.com>2020-08-20 22:50:13 (GMT)
commit8962bfa23f42567fd3e6ead0c1f2326b3472ca19 (patch)
tree8acdf86af5b86fc3eeabaca06bb5750f67e9955a /library/ttk/scrollbar.tcl
parent999cd73b8d9af8d879bfd56f9137c53f570aa516 (diff)
downloadtk-8962bfa23f42567fd3e6ead0c1f2326b3472ca19.zip
tk-8962bfa23f42567fd3e6ead0c1f2326b3472ca19.tar.gz
tk-8962bfa23f42567fd3e6ead0c1f2326b3472ca19.tar.bz2
Fix mouse bindings for scrollbars with graphical grip elements.
Diffstat (limited to 'library/ttk/scrollbar.tcl')
-rw-r--r--library/ttk/scrollbar.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/ttk/scrollbar.tcl b/library/ttk/scrollbar.tcl
index efcf3a1..e939426 100644
--- a/library/ttk/scrollbar.tcl
+++ b/library/ttk/scrollbar.tcl
@@ -67,6 +67,7 @@ proc ttk::scrollbar::Press {w x y} {
*rightarrow {
ttk::Repeatedly Scroll $w 1 units
}
+ *grip -
*thumb {
set State(first) [lindex [$w get] 0]
}
@@ -89,7 +90,7 @@ proc ttk::scrollbar::Press {w x y} {
proc ttk::scrollbar::Drag {w x y} {
variable State
if {![info exists State(first)]} {
- # Initial buttonpress was not on the thumb,
+ # Initial buttonpress was not on the thumb,
# or something screwy has happened. In either case, ignore:
return;
}
@@ -112,6 +113,7 @@ proc ttk::scrollbar::Jump {w x y} {
variable State
switch -glob -- [$w identify $x $y] {
+ *grip -
*thumb -
*trough {
set State(first) [$w fraction $x $y]