10 writes to _scroll
Aspire.Tray.Tests (10)
src\Aspire.Tray\Common\TrayPanel.cs (10)
209
_scroll
= 0;
272
_scroll
= 0;
376
_scroll
= Math.Clamp(before - deltaY, 0, Math.Max(0, _contentHeight - _viewport.Height));
489
_scroll
+= Math.Min(bottom - _viewport.Bottom, Math.Max(0, top - _viewport.Y));
528
_scroll
+= bottom - _viewport.Bottom;
532
_scroll
-= _viewport.Y - top;
557
_scroll
= _listScroll;
607
_scroll
-= _viewport.Y - target.Bounds.Y;
611
_scroll
+= target.Bounds.Bottom - _viewport.Bottom;
808
_scroll
= Math.Clamp(_scroll, 0, Math.Max(0, _contentHeight - _viewport.Height));
7 references to _scroll
Aspire.Tray.Tests (7)
src\Aspire.Tray\Common\TrayPanel.cs (7)
126
return
_scroll
;
208
_listScroll =
_scroll
;
377
if (
_scroll
== before)
808
_scroll = Math.Clamp(
_scroll
, 0, Math.Max(0, _contentHeight - _viewport.Height));
809
var listOrigin = _viewport.Y -
_scroll
;
835
if (
_scroll
> 0 && notice is not null)
891
var thumbY = _viewport.Y + 4 + travel *
_scroll
/ (_contentHeight - _viewport.Height);