Enables apps to get and set the scroll position.
Gets the scroll position relative to the browser viewport
Name | Type | Description |
---|---|---|
callback | function | callback to pass the scroll position |
1
AP.scrollPosition.getPosition(function(obj) { console.log(obj); });
Sets the vertical scroll position relative to the iframe
Name | Type | Description |
---|---|---|
y | Number | vertical offset position |
callback | function | callback to pass the scroll position |
1
AP.scrollPosition.setVerticalPosition(30, function(obj) { console.log(obj); });
Rate this page: