@@ -170,6 +170,7 @@ namespace ControlUnitTests
170
170
171
171
// The mouse location and buttons don't matter here.
172
172
interactivity->MouseWheel (modifiers,
173
+ false ,
173
174
30 ,
174
175
Core::Point{ 0 , 0 },
175
176
buttonState);
@@ -188,6 +189,7 @@ namespace ControlUnitTests
188
189
189
190
// The mouse location and buttons don't matter here.
190
191
interactivity->MouseWheel (modifiers,
192
+ false ,
191
193
-30 ,
192
194
Core::Point{ 0 , 0 },
193
195
buttonState);
@@ -245,6 +247,7 @@ namespace ControlUnitTests
245
247
expectedTop = 20 ;
246
248
247
249
interactivity->MouseWheel (modifiers,
250
+ false ,
248
251
WHEEL_DELTA,
249
252
Core::Point{ 0 , 0 },
250
253
buttonState);
@@ -254,17 +257,20 @@ namespace ControlUnitTests
254
257
{
255
258
expectedTop--;
256
259
interactivity->MouseWheel (modifiers,
260
+ false ,
257
261
WHEEL_DELTA,
258
262
Core::Point{ 0 , 0 },
259
263
buttonState);
260
264
}
261
265
Log::Comment (L" Scrolling up more should do nothing" );
262
266
expectedTop = 0 ;
263
267
interactivity->MouseWheel (modifiers,
268
+ false ,
264
269
WHEEL_DELTA,
265
270
Core::Point{ 0 , 0 },
266
271
buttonState);
267
272
interactivity->MouseWheel (modifiers,
273
+ false ,
268
274
WHEEL_DELTA,
269
275
Core::Point{ 0 , 0 },
270
276
buttonState);
@@ -275,6 +281,7 @@ namespace ControlUnitTests
275
281
Log::Comment (NoThrowString ().Format (L" ---scroll down #%d---" , i));
276
282
expectedTop++;
277
283
interactivity->MouseWheel (modifiers,
284
+ false ,
278
285
-WHEEL_DELTA,
279
286
Core::Point{ 0 , 0 },
280
287
buttonState);
@@ -283,10 +290,12 @@ namespace ControlUnitTests
283
290
Log::Comment (L" Scrolling down more should do nothing" );
284
291
expectedTop = 21 ;
285
292
interactivity->MouseWheel (modifiers,
293
+ false ,
286
294
-WHEEL_DELTA,
287
295
Core::Point{ 0 , 0 },
288
296
buttonState);
289
297
interactivity->MouseWheel (modifiers,
298
+ false ,
290
299
-WHEEL_DELTA,
291
300
Core::Point{ 0 , 0 },
292
301
buttonState);
@@ -444,6 +453,7 @@ namespace ControlUnitTests
444
453
445
454
Log::Comment (L" Scroll up a line, with the left mouse button selected" );
446
455
interactivity->MouseWheel (modifiers,
456
+ false ,
447
457
WHEEL_DELTA,
448
458
cursorPosition1.to_core_point (),
449
459
leftMouseDown);
@@ -492,55 +502,55 @@ namespace ControlUnitTests
492
502
const Core::Point mousePos{ 0 , 0 };
493
503
Control::MouseButtonState state{};
494
504
495
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 1/5
505
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 1/5
496
506
VERIFY_ARE_EQUAL (21 , core->ScrollOffset ());
497
507
498
508
Log::Comment (L" Scroll up 4 more times. Once we're at 3/5 scrolls, "
499
509
L" we'll round the internal scrollbar position to scrolling to the next row." );
500
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 2/5
510
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 2/5
501
511
VERIFY_ARE_EQUAL (21 , core->ScrollOffset ());
502
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 3/5
512
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 3/5
503
513
VERIFY_ARE_EQUAL (20 , core->ScrollOffset ());
504
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 4/5
514
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 4/5
505
515
VERIFY_ARE_EQUAL (20 , core->ScrollOffset ());
506
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 5/5
516
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 5/5
507
517
VERIFY_ARE_EQUAL (20 , core->ScrollOffset ());
508
518
509
519
Log::Comment (L" Jump to line 5, so we can scroll down from there." );
510
520
interactivity->UpdateScrollbar (5 );
511
521
VERIFY_ARE_EQUAL (5 , core->ScrollOffset ());
512
522
Log::Comment (L" Scroll down 5 times, at which point we should accumulate a whole row of delta." );
513
- interactivity->MouseWheel (modifiers, -delta, mousePos, state); // 1/5
523
+ interactivity->MouseWheel (modifiers, false , -delta, mousePos, state); // 1/5
514
524
VERIFY_ARE_EQUAL (5 , core->ScrollOffset ());
515
- interactivity->MouseWheel (modifiers, -delta, mousePos, state); // 2/5
525
+ interactivity->MouseWheel (modifiers, false , -delta, mousePos, state); // 2/5
516
526
VERIFY_ARE_EQUAL (5 , core->ScrollOffset ());
517
- interactivity->MouseWheel (modifiers, -delta, mousePos, state); // 3/5
527
+ interactivity->MouseWheel (modifiers, false , -delta, mousePos, state); // 3/5
518
528
VERIFY_ARE_EQUAL (6 , core->ScrollOffset ());
519
- interactivity->MouseWheel (modifiers, -delta, mousePos, state); // 4/5
529
+ interactivity->MouseWheel (modifiers, false , -delta, mousePos, state); // 4/5
520
530
VERIFY_ARE_EQUAL (6 , core->ScrollOffset ());
521
- interactivity->MouseWheel (modifiers, -delta, mousePos, state); // 5/5
531
+ interactivity->MouseWheel (modifiers, false , -delta, mousePos, state); // 5/5
522
532
VERIFY_ARE_EQUAL (6 , core->ScrollOffset ());
523
533
524
534
Log::Comment (L" Jump to the bottom." );
525
535
interactivity->UpdateScrollbar (21 );
526
536
VERIFY_ARE_EQUAL (21 , core->ScrollOffset ());
527
537
Log::Comment (L" Scroll a bit, then emit a line of text. We should reset our internal scroll position." );
528
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 1/5
538
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 1/5
529
539
VERIFY_ARE_EQUAL (21 , core->ScrollOffset ());
530
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 2/5
540
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 2/5
531
541
VERIFY_ARE_EQUAL (21 , core->ScrollOffset ());
532
542
533
543
conn->WriteInput (winrt_wstring_to_array_view (L" Foo\r\n " ));
534
544
VERIFY_ARE_EQUAL (22 , core->ScrollOffset ());
535
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 1/5
545
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 1/5
536
546
VERIFY_ARE_EQUAL (22 , core->ScrollOffset ());
537
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 2/5
547
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 2/5
538
548
VERIFY_ARE_EQUAL (22 , core->ScrollOffset ());
539
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 3/5
549
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 3/5
540
550
VERIFY_ARE_EQUAL (21 , core->ScrollOffset ());
541
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 4/5
551
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 4/5
542
552
VERIFY_ARE_EQUAL (21 , core->ScrollOffset ());
543
- interactivity->MouseWheel (modifiers, delta, mousePos, state); // 5/5
553
+ interactivity->MouseWheel (modifiers, false , delta, mousePos, state); // 5/5
544
554
VERIFY_ARE_EQUAL (21 , core->ScrollOffset ());
545
555
}
546
556
@@ -709,6 +719,7 @@ namespace ControlUnitTests
709
719
{
710
720
expectedTop--;
711
721
interactivity->MouseWheel (modifiers,
722
+ false ,
712
723
WHEEL_DELTA,
713
724
Core::Point{ 0 , 0 },
714
725
noMouseDown);
0 commit comments