Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Detect normal scroll with scrollToPoint

$
0
0

I am using ion-content and it’s scroll methods in the Ionic react.

I want to update the header based on the scroll.I am using onIonScroll to detect the scrollY position. in which I passed handleScroll function
I also want to navigate to a specific point with scrollToPoint method.

The issue I am facing is I have some code to update the header for in handleScroll, but when I call scrollToPoint this scroll function handleScroll is called internally and updates the value.

I want to detect when the function is called by user action and when the function is called from handle scroll

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>