I want to count ion-tab clicks, If it's click two time I want to scroll top of the page

I cannot count ion-tab clicks if it’s already active. I want to move scroll on top of the page If home tab is clicked two times like in Facebook.

This issue is resolved. Both below solutions are working.