summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-09-23 20:05:19 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-09-23 20:05:19 (GMT)
commit92f92ea4339a5946f1fd60897bed4d43ddfe68dc (patch)
tree567c9ab01f7dc3f013ea3e4ecd2287237481fe59 /tests
parent18d837b6fa55ac5268e747b828ce4e3fa78a51ea (diff)
downloadtk-92f92ea4339a5946f1fd60897bed4d43ddfe68dc.zip
tk-92f92ea4339a5946f1fd60897bed4d43ddfe68dc.tar.gz
tk-92f92ea4339a5946f1fd60897bed4d43ddfe68dc.tar.bz2
Ooops, the delta needs to be -4, not -1, in order to scroll down/right four lines/chars.
Diffstat (limited to 'tests')
-rw-r--r--tests/scrollbar.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test
index 910c4ea..e4fdc0e 100644
--- a/tests/scrollbar.test
+++ b/tests/scrollbar.test
@@ -654,7 +654,7 @@ test scrollbar-10.1.2 {<MouseWheel> event on scrollbar} -constraints {aqua} -set
pack [scrollbar .s -command {.t yview}] -fill y -expand 1 -side left
update
focus -force .s
- event generate .s <MouseWheel> -delta -1
+ event generate .s <MouseWheel> -delta -4
after 200 {set eventprocessed 1} ; vwait eventprocessed
.t index @0,0
} -cleanup {
@@ -683,7 +683,7 @@ test scrollbar-10.2.2 {<MouseWheel> event on scrollbar} -constraints {aqua} -set
pack [scrollbar .s -command {.t xview} -orient horizontal] -fill x -expand 1 -side top
update
focus -force .s
- event generate .s <Shift-MouseWheel> -delta -1
+ event generate .s <Shift-MouseWheel> -delta -4
after 200 {set eventprocessed 1} ; vwait eventprocessed
.t index @0,0
} -cleanup {