fixed huepad behaviour with traversing gestures enabled

This commit is contained in:
jean-emmanuel 2016-03-15 20:45:44 +01:00
parent 05e136fdd9
commit 3964ebbc06

View file

@ -150,7 +150,7 @@ module.exports.create = function(widgetData,container) {
huePad.on('drag',function(e,data){
e.stopPropagation()
if (data.shiftKey) return
if (TRAVERSING) return
var w = clip(data.deltaX*100/pad.width+hueOff,[0,100])
hueHandle[0].setAttribute('style',`transform:translate3d(${pad.width*w/100}px,0,0)`)