From 03febf79115711b221f169bb9f59776bddcf8682 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarado Date: Mon, 2 Nov 2020 17:31:52 +0100 Subject: [PATCH] added scrollbar drag events support --- projects/lib/src/lib/swiper.component.ts | 4 ++++ projects/lib/src/lib/swiper.directive.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/projects/lib/src/lib/swiper.component.ts b/projects/lib/src/lib/swiper.component.ts index 1fe37f0..c52b45d 100644 --- a/projects/lib/src/lib/swiper.component.ts +++ b/projects/lib/src/lib/swiper.component.ts @@ -91,6 +91,10 @@ export class SwiperComponent implements AfterViewInit, OnDestroy { @Output('scrollDragMove' ) S_SCROLLDRAGMOVE = new EventEmitter(); @Output('scrollDragStart' ) S_SCROLLDRAGSTART = new EventEmitter(); + @Output('scrollbarDragEnd' ) S_SCROLLBARDRAGEND = new EventEmitter(); + @Output('scrollbarDragMove' ) S_SCROLLBARDRAGMOVE = new EventEmitter(); + @Output('scrollbarDragStart' ) S_SCROLLBARDRAGSTART = new EventEmitter(); + @Output('navigationHide' ) S_NAVIGATIONHIDE = new EventEmitter(); @Output('navigationShow' ) S_NAVIGATIONSHOW = new EventEmitter(); diff --git a/projects/lib/src/lib/swiper.directive.ts b/projects/lib/src/lib/swiper.directive.ts index 4ab8b17..483c7eb 100644 --- a/projects/lib/src/lib/swiper.directive.ts +++ b/projects/lib/src/lib/swiper.directive.ts @@ -73,6 +73,10 @@ export class SwiperDirective implements AfterViewInit, OnDestroy, DoCheck, OnCha @Output('scrollDragMove' ) S_SCROLLDRAGMOVE = new EventEmitter(); @Output('scrollDragStart' ) S_SCROLLDRAGSTART = new EventEmitter(); + @Output('scrollbarDragEnd' ) S_SCROLLBARDRAGEND = new EventEmitter(); + @Output('scrollbarDragMove' ) S_SCROLLBARDRAGMOVE = new EventEmitter(); + @Output('scrollbarDragStart' ) S_SCROLLBARDRAGSTART = new EventEmitter(); + @Output('navigationHide' ) S_NAVIGATIONHIDE = new EventEmitter(); @Output('navigationShow' ) S_NAVIGATIONSHOW = new EventEmitter();