Skip to content

UIScrollView: transfersVerticalScrollingToParent property ​

The transfersVerticalScrollingToParent property indicates whether, after scrolling to the end vertically, continued dragging is handed to the outer scroll view.

Value ​

A boolean.

ValueEffect
trueHanded to the outer scroll view
falseNot handed over
  • Readable and writable.
  • This property was added from the iOS headers. The acceptance tests verify that it can be read, has the right type, and reads back unchanged after writing back the original value; its effect is not verified in the simulator, and the usage follows Apple's documentation.
  • Values of other types are converted by JS truthiness.
  • No change event: only the app's own code changes it.

Examples ​

js
const scroller = new UIScrollView();
scroller.transfersVerticalScrollingToParent = false;
console.log(scroller.transfersVerticalScrollingToParent);

Effect: the console logs false. Dragging is not handed over; not verified in the simulator.

Corresponding iOS API ​

UIScrollView.transfersVerticalScrollingToParent.