@@ -611,12 +611,12 @@ private void select(CarouselItem? item)
611
611
/// <summary>
612
612
/// The position of the lower visible bound with respect to the current scroll position.
613
613
/// </summary>
614
- private float visibleBottomBound => Scroll . Current + DrawHeight + BleedBottom ;
614
+ private float visibleBottomBound => ( float ) ( Scroll . Current + DrawHeight + BleedBottom ) ;
615
615
616
616
/// <summary>
617
617
/// The position of the upper visible bound with respect to the current scroll position.
618
618
/// </summary>
619
- private float visibleUpperBound => Scroll . Current - BleedTop ;
619
+ private float visibleUpperBound => ( float ) ( Scroll . Current - BleedTop ) ;
620
620
621
621
public void FlushPendingFilterOperations ( )
622
622
{
@@ -1006,7 +1006,7 @@ private void updateScrollPosition()
1006
1006
// we take the difference in scroll height and apply to all visible panels.
1007
1007
// this avoids edge cases like when the visible panels is reduced suddenly, causing ScrollContainer
1008
1008
// to enter clamp-special-case mode where it animates completely differently to normal.
1009
- float scrollChange = scrollTarget . Value - Scroll . Current ;
1009
+ float scrollChange = ( float ) ( scrollTarget . Value - Scroll . Current ) ;
1010
1010
Scroll . ScrollTo ( scrollTarget . Value , false ) ;
1011
1011
foreach ( var i in Scroll )
1012
1012
i . Y += scrollChange ;
@@ -1217,20 +1217,20 @@ public PaddedScrollbar()
1217
1217
private const float top_padding = 10 ;
1218
1218
private const float bottom_padding = 70 ;
1219
1219
1220
- protected override float ToScrollbarPosition ( float scrollPosition )
1220
+ protected override float ToScrollbarPosition ( double scrollPosition )
1221
1221
{
1222
1222
if ( Precision . AlmostEquals ( 0 , ScrollableExtent ) )
1223
1223
return 0 ;
1224
1224
1225
- return top_padding + ( ScrollbarMovementExtent - ( top_padding + bottom_padding ) ) * ( scrollPosition / ScrollableExtent ) ;
1225
+ return ( float ) ( top_padding + ( ScrollbarMovementExtent - ( top_padding + bottom_padding ) ) * ( scrollPosition / ScrollableExtent ) ) ;
1226
1226
}
1227
1227
1228
1228
protected override float FromScrollbarPosition ( float scrollbarPosition )
1229
1229
{
1230
1230
if ( Precision . AlmostEquals ( 0 , ScrollbarMovementExtent ) )
1231
1231
return 0 ;
1232
1232
1233
- return ScrollableExtent * ( ( scrollbarPosition - top_padding ) / ( ScrollbarMovementExtent - ( top_padding + bottom_padding ) ) ) ;
1233
+ return ( float ) ( ScrollableExtent * ( ( scrollbarPosition - top_padding ) / ( ScrollbarMovementExtent - ( top_padding + bottom_padding ) ) ) ) ;
1234
1234
}
1235
1235
}
1236
1236
}
0 commit comments