It's currently not possible to override the allowNewOrigin to its default. This PR makes it possible to pass false for the paper origin to remain at 0,0 in TypeScript.
Note that this has always been possible in JavaScript, and this PR just changes the types and updates the documentation to make it clear.
const scroller = new ui.PaperScroller({
/* ... */
contentOptions: {
allowNewOrigin: false // the paper scroller default for `allowNewOrigin` is `positive`
}
})
Description
It's currently not possible to override the
allowNewOrigin
to its default. This PR makes it possible to passfalse
for the paper origin to remain at0,0
in TypeScript.Note that this has always been possible in JavaScript, and this PR just changes the types and updates the documentation to make it clear.
The problem was evident in the paper scroller.