Changeset 1277 for trunk/gui/scripts/scroller.tcl
- Timestamp:
- Feb 19, 2009 3:13:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/scroller.tcl
r464 r1277 161 161 set _contents $widget 162 162 163 if {[string equal "x11" [tk windowingsystem]]} { 164 bind ${widget} <4> { %W yview scroll -5 units } 165 bind ${widget} <5> { %W yview scroll 5 units } 166 } else { 167 bind ${widget} <MouseWheel> { 168 %W yview scroll [expr {- (%D / 120) * 4}] units 169 } 170 } 163 171 if {$widget == $_frame} { 164 172 return $_frame.f
Note: See TracChangeset
for help on using the changeset viewer.