fix(scroll-view): wrong locationOnScreen rounding

This commit is contained in:
Vasil Chimev
2018-08-03 11:20:16 +03:00
committed by Martin Yankov
parent 3a7a944ba1
commit 1858cba4ed

View File

@@ -219,8 +219,8 @@ export class ScrollView extends ScrollViewBase {
const safeArea = this.getSafeArea(); const safeArea = this.getSafeArea();
const fullscreen = this.getFullscreenArea(); const fullscreen = this.getFullscreenArea();
const locationOnScreen = this.getLocationInWindow(); const locationOnScreen = this.getLocationInWindow();
const onScreenLeft = layout.toDevicePixels(layout.round(locationOnScreen.x)); const onScreenLeft = layout.round(layout.toDevicePixels(locationOnScreen.x));
const onScreenTop = layout.toDevicePixels(layout.round(locationOnScreen.y)); const onScreenTop = layout.round(layout.toDevicePixels(locationOnScreen.y));
let left = layout.toDevicePixels(frame.origin.x); let left = layout.toDevicePixels(frame.origin.x);
let top = layout.toDevicePixels(frame.origin.y); let top = layout.toDevicePixels(frame.origin.y);