diff --git a/demo/app/demos.ts b/demo/app/demos.ts index 18802e56..d9c8f4c7 100644 --- a/demo/app/demos.ts +++ b/demo/app/demos.ts @@ -45,6 +45,7 @@ import { DemoAdapterFixPositionComponent } from './samples/experimental/adapter- import { DemoAdapterFixUpdaterComponent } from './samples/experimental/adapter-fix-updater.component'; import { DemoAdapterFixScrollToItemComponent } from './samples/experimental/adapter-fix-scrollToItem.component'; import { DemoOnBeforeClipSettingComponent } from './samples/experimental/onBeforeClip-setting.component'; +import { DemoAdapterPauseResumeComponent } from './samples/experimental/adapter-pause-resume.component'; import { DemoRoutinesComponent } from './samples/experimental/routines.component'; const common = [ @@ -100,6 +101,7 @@ const experimental = [ DemoAdapterFixUpdaterComponent, DemoAdapterFixScrollToItemComponent, DemoOnBeforeClipSettingComponent, + DemoAdapterPauseResumeComponent, DemoRoutinesComponent ]; diff --git a/demo/app/routes.ts b/demo/app/routes.ts index 980977da..df0b4180 100644 --- a/demo/app/routes.ts +++ b/demo/app/routes.ts @@ -262,6 +262,11 @@ const experimentalScope = { name: 'onBeforeClip setting', scope: globalScope.experimental.id }, + adapterPauseResume: { + id: 'adapter-pause-resume', + name: 'Adapter pause/resume methods', + scope: globalScope.experimental.id + }, routines: { id: 'routines', name: 'Routines', diff --git a/demo/app/samples/experimental.component.html b/demo/app/samples/experimental.component.html index a9aaa590..3a657fd2 100644 --- a/demo/app/samples/experimental.component.html +++ b/demo/app/samples/experimental.component.html @@ -45,4 +45,5 @@
+ The Adapter.pause method is to stop the Scroller. + It doesn't receive the scroll events from the viewport, + so the scroll events are ignored. Also, all the Adapter methods + (except Adapter.resume and Adapter.reset) + don't do anything. +
++ The Adapter.resume method is to make the Scroller live again. +
+