| Index: sky/framework/sky-scrollable.sky
|
| diff --git a/sky/framework/sky-scrollable.sky b/sky/framework/sky-scrollable.sky
|
| index 7f5e60d21f729096c19d54d0381961bcc5258289..323639e55b0cd567a23792de03d52a4721685698 100644
|
| --- a/sky/framework/sky-scrollable.sky
|
| +++ b/sky/framework/sky-scrollable.sky
|
| @@ -94,8 +94,10 @@ class SkyScrollable extends SkyElement {
|
| double newScrollOffset = math.max(0.0, math.min(scrollRange, value));
|
| if (newScrollOffset == _scrollOffset)
|
| return;
|
| + // TODO(eseidel): We should scroll in device pixels instead of logical
|
| + // pixels, but to do that correctly we need to use a device pixel unit.
|
| _scrollOffset = newScrollOffset;
|
| - String transform = 'translateY(${(-_scrollOffset).toStringAsFixed(2)}px)';
|
| + String transform = 'translateY(${(-_scrollOffset).toInt()}px)';
|
| _scrollable.style['transform'] = transform;
|
|
|
| double topPercent = newScrollOffset / innerHeight * 100.0;
|
|
|