Which event to listen to during inertia/momentum scroll on Cordova iOS w/ React
问题 I have a React app running on iOS through cordova/phonegap. In one component, I have a toolbar that sticks to the top of the screen once you scroll past it: <div id="content">Some stuff in here</div> <div id="tool-bar"> <div class="tool">Tool 1</div> <div class="tool">Tool 2</div> </div> <div id="some-stuff-below-toolbar">Stuff</div> You get the picture. Whenever the user scrolls, the Y position is calculated, and if it's below the offset, the tool bar gets a class 'sticky' and CSS to fix it