From 0c695c5c96d98e2daf6f3e98676282a6d688e039 Mon Sep 17 00:00:00 2001 From: Julien Maulny Date: Wed, 23 Oct 2019 18:12:22 +0200 Subject: Add a drag&drop delay on playlist videos to allow user scroll on small screens (#2154) * Add delay on playlist element reordering to fix user scroll on mobile Signed-off-by: Julien Maulny * Upgrade @angular/cdk to include bugfix about drag&drop Signed-off-by: Julien Maulny * add delay on playlist drag&drop on all touch screens Signed-off-by: Julien Maulny --- client/package.json | 2 +- .../my-account-video-playlist-elements.component.html | 2 +- .../my-account-video-playlist-elements.component.ts | 19 +++++++++++++++++++ client/yarn.lock | 2 +- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/client/package.json b/client/package.json index 5514b91bd..a45f2b8c7 100644 --- a/client/package.json +++ b/client/package.json @@ -33,7 +33,7 @@ "devDependencies": { "@angular-devkit/build-angular": "~0.803.12", "@angular/animations": "~8.2.0", - "@angular/cdk": "^8.1.1", + "@angular/cdk": "^8.2.3", "@angular/cli": "~8.3.0", "@angular/common": "~8.2.0", "@angular/compiler": "~8.2.0", diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.html b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.html index a3de3da4a..2bfdf5c43 100644 --- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.html +++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.html @@ -14,7 +14,7 @@ class="videos" myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" cdkDropList (cdkDropListDropped)="drop($event)" [dataObservable]="onDataSubject.asObservable()" > -
+
{ diff --git a/client/yarn.lock b/client/yarn.lock index 620d12bb2..8e1f28c75 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -118,7 +118,7 @@ dependencies: tslib "^1.9.0" -"@angular/cdk@^8.1.1": +"@angular/cdk@^8.2.3": version "8.2.3" resolved "https://registry.yarnpkg.com/@angular/cdk/-/cdk-8.2.3.tgz#16b96ffa935cbf5a646757ecaf2b19c434678f72" integrity sha512-ZwO5Sn720RA2YvBqud0JAHkZXjmjxM0yNzCO8RVtRE9i8Gl26Wk0j0nQeJkVm4zwv2QO8MwbKUKGTMt8evsokA== -- cgit v1.2.3