From bf88e525ac965cd8a743e6ffa7ff71d7c4df3957 Mon Sep 17 00:00:00 2001 From: Antonio Date: Sun, 8 Nov 2020 01:04:19 +0100 Subject: [PATCH] Also emit the raw gesture event, carrying gesture and lastGesture values, whenever a gesture is performed --- src/components/hand-controls.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/hand-controls.js b/src/components/hand-controls.js index ff8c070f1d2..13aa18776fc 100644 --- a/src/components/hand-controls.js +++ b/src/components/hand-controls.js @@ -338,6 +338,9 @@ module.exports.Component = registerComponent('hand-controls', { // Emit event for current gesture now active. eventName = getGestureEventName(gesture, true); if (eventName) { el.emit(eventName); } + + // Emit the raw gesture+lastGesture event + el.emit('gesture', {'gesture': gesture, 'lastGesture': lastGesture}); }, /**