Import Tk 8.6.10
This commit is contained in:
@@ -182,27 +182,35 @@ bind Listbox <B2-Motion> {
|
||||
|
||||
if {[tk windowingsystem] eq "aqua"} {
|
||||
bind Listbox <MouseWheel> {
|
||||
%W yview scroll [expr {- (%D)}] units
|
||||
%W yview scroll [expr {-(%D)}] units
|
||||
}
|
||||
bind Listbox <Option-MouseWheel> {
|
||||
%W yview scroll [expr {-10 * (%D)}] units
|
||||
}
|
||||
bind Listbox <Shift-MouseWheel> {
|
||||
%W xview scroll [expr {- (%D)}] units
|
||||
%W xview scroll [expr {-(%D)}] units
|
||||
}
|
||||
bind Listbox <Shift-Option-MouseWheel> {
|
||||
%W xview scroll [expr {-10 * (%D)}] units
|
||||
}
|
||||
} else {
|
||||
bind Listbox <MouseWheel> {
|
||||
%W yview scroll [expr {- (%D / 120) * 4}] units
|
||||
if {%D >= 0} {
|
||||
%W yview scroll [expr {-%D/30}] units
|
||||
} else {
|
||||
%W yview scroll [expr {(29-%D)/30}] units
|
||||
}
|
||||
}
|
||||
bind Listbox <Shift-MouseWheel> {
|
||||
%W xview scroll [expr {- (%D / 120) * 4}] units
|
||||
if {%D >= 0} {
|
||||
%W xview scroll [expr {-%D/30}] units
|
||||
} else {
|
||||
%W xview scroll [expr {(29-%D)/30}] units
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if {"x11" eq [tk windowingsystem]} {
|
||||
if {[tk windowingsystem] eq "x11"} {
|
||||
# Support for mousewheels on Linux/Unix commonly comes through mapping
|
||||
# the wheel to the extended buttons. If you have a mousewheel, find
|
||||
# Linux configuration info at:
|
||||
|
||||
Reference in New Issue
Block a user