From 1858cba4ed9a98afe77c20ef84cfb591f40213a1 Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Fri, 3 Aug 2018 11:20:16 +0300 Subject: [PATCH] fix(scroll-view): wrong locationOnScreen rounding --- tns-core-modules/ui/scroll-view/scroll-view.ios.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tns-core-modules/ui/scroll-view/scroll-view.ios.ts b/tns-core-modules/ui/scroll-view/scroll-view.ios.ts index 58d1a6c5d..bde46340d 100644 --- a/tns-core-modules/ui/scroll-view/scroll-view.ios.ts +++ b/tns-core-modules/ui/scroll-view/scroll-view.ios.ts @@ -219,8 +219,8 @@ export class ScrollView extends ScrollViewBase { const safeArea = this.getSafeArea(); const fullscreen = this.getFullscreenArea(); const locationOnScreen = this.getLocationInWindow(); - const onScreenLeft = layout.toDevicePixels(layout.round(locationOnScreen.x)); - const onScreenTop = layout.toDevicePixels(layout.round(locationOnScreen.y)); + const onScreenLeft = layout.round(layout.toDevicePixels(locationOnScreen.x)); + const onScreenTop = layout.round(layout.toDevicePixels(locationOnScreen.y)); let left = layout.toDevicePixels(frame.origin.x); let top = layout.toDevicePixels(frame.origin.y);