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)
126return _scroll; 208_listScroll = _scroll; 377if (_scroll == before) 808_scroll = Math.Clamp(_scroll, 0, Math.Max(0, _contentHeight - _viewport.Height)); 809var listOrigin = _viewport.Y - _scroll; 835if (_scroll > 0 && notice is not null) 891var thumbY = _viewport.Y + 4 + travel * _scroll / (_contentHeight - _viewport.Height);