Closed SidIcarus closed 1 year ago
@SidIcarus
Okay, I'll add it soon.
@SidIcarus
@scena/guides
0.20.0preact-guides
0.19.0react-compat-guides
0.17.0@scena/react-guides
0.19.0svelte-guides
0.19.0vue-guides
0.19.0vue3-guides
0.3.0ngx-guides
0.19.0https://daybrush.com/guides/release/latest/doc/Guides.html#.GuidesOptions Use scrollOptions
scrollOptions: {
container: () => viewer.getContainer(),
getScrollPosition: () => {
return [
viewer.getScrollLeft(),
viewer.getScrollTop(),
];
},
threshold: 200,
throttleTime: 30,
requestScroll: ({ direction }) => viewer.scrollBy(0, direction[1] * 10),
},
@daybrush
Curious about your rationale on the decision of making the scroll
(requestScroll
) event handle as part of the scrollOptions
instead of as part of the on
events in other places (i.e Selecto
& Moveable
)
Never mind, I see it is also part of events.
Environments
Description
Users will then be able to implement something like the following, much like the scroll events implemented for
selecto
andmoveable