From 0f1d319c3453e1c7f46bd22a9f8ecd2083791e44 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 27 Jul 2017 18:49:04 +0200 Subject: [PATCH] chore: remove drag event from gestures demo (#6032) * The custom recognizer called "drag" has been removed a long time ago to avoid collisions with the native `drag` events. * The demo app still shows the drag event on the gestures demo (which apparently doesn't work now anymore) --- src/demo-app/gestures/gestures-demo.html | 7 +++---- src/demo-app/gestures/gestures-demo.ts | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/demo-app/gestures/gestures-demo.html b/src/demo-app/gestures/gestures-demo.html index 9f2467659ef..0f1535fc34f 100644 --- a/src/demo-app/gestures/gestures-demo.html +++ b/src/demo-app/gestures/gestures-demo.html @@ -1,10 +1,9 @@
-
+
Drag, swipe, or press me.
-

Drag: {{dragCount}}

Pan: {{panCount}}

Longpress: {{longpressCount}}

Press: {{pressCount}}

diff --git a/src/demo-app/gestures/gestures-demo.ts b/src/demo-app/gestures/gestures-demo.ts index 13df7c29a2a..693a1b612cb 100644 --- a/src/demo-app/gestures/gestures-demo.ts +++ b/src/demo-app/gestures/gestures-demo.ts @@ -7,7 +7,6 @@ import {Component} from '@angular/core'; styleUrls: ['gestures-demo.css'], }) export class GesturesDemo { - dragCount: number = 0; panCount: number = 0; pressCount: number = 0; longpressCount: number = 0;