import { Component } from "@angular/core" ; import { ScrollView , ScrollEventData } from "@nativescript/core" ; @ Component ( { moduleId : module . id , styleUrls : [ "./style.css" ] , templateUrl : "./tips-and-tricks.component.html" } ) export class TipsAndTricksComponent { onScroll ( args ) { const scrollView = args . object as ScrollView ; console . log ( "scrollX: " + args . scrollX ) ; console . log ( "scrollY: " + args . scrollY ) ; } }