From 6439ceef3567863373c4bbb6827fd0e07493a3c8 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 11 Jan 2017 12:20:02 +0100 Subject: [PATCH] multixy: traversing: mak all points follow the gesture, and make multipoint work --- src/browser/js/app/widgets/pads/multixy.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/browser/js/app/widgets/pads/multixy.js b/src/browser/js/app/widgets/pads/multixy.js index 18c9c22d..4db58b43 100644 --- a/src/browser/js/app/widgets/pads/multixy.js +++ b/src/browser/js/app/widgets/pads/multixy.js @@ -95,16 +95,9 @@ module.exports = class MultiXy extends _pads_base { this.value = [] this.handles.forEach((handle, index)=>{ - let active = false + handle.on('draginit',(e, data, traversing)=>{ - if (traversing && active) { - handle.triggerHandler('drag',[data, traversing]) - return - } - - active = true - if (!traversing) { handle.addClass('active') } @@ -139,7 +132,6 @@ module.exports = class MultiXy extends _pads_base { if (this.pads[id]) this.pads[id].wrapper.trigger(e.type, [data, traversing]) handle.removeClass('active') this.handlesToPads[index] = false - active = false })