touch fake-right-click only fires on long touch, not after every tap
& Merge branch 'master' of github.com:jean-emmanuel/Open-Stage-Control
This commit is contained in:
commit
4d62f22419
8 changed files with 28 additions and 22 deletions
|
|
@ -1,9 +1,16 @@
|
|||
# Changelog
|
||||
|
||||
## 0.5.1
|
||||
## 0.5.2
|
||||
|
||||
- bug fixes
|
||||
- touch fake-right-click only fires on long touch, not after every tap
|
||||
|
||||
## 0.5.1
|
||||
|
||||
- bug fixes
|
||||
- feedback is now handled precisely by widets (ie not rounded according to the `precision` option, see issue #21)
|
||||
- engine
|
||||
- electron 1.1.0
|
||||
|
||||
## 0.5.0
|
||||
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ module.exports.create = function(widgetData,container) {
|
|||
v=clip(Math.round(v*roundFactor)/roundFactor,[rangeVals[0],rangeVals.slice(-1)[0]])
|
||||
for (var i=0;i<rangeVals.length-1;i++) {
|
||||
if (v <= rangeVals[i+1] && v >= rangeVals[i]) {
|
||||
h = mapToScale(v,[rangeVals[i],rangeVals[i+1]],[rangeKeys[i],rangeKeys[i+1]],widgetData.precision,logScale,true)
|
||||
h = mapToScale(v,[rangeVals[i],rangeVals[i+1]],[rangeKeys[i],rangeKeys[i+1]],false,logScale,true)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
for (var i=0;i<rangeVals.length-1;i++) {
|
||||
if (v <= rangeVals[i+1] && v >= rangeVals[i]) {
|
||||
r = mapToScale(v,[rangeVals[i],rangeVals[i+1]],[rangeKeys[i]*2.7,rangeKeys[i+1]*2.7],widgetData.precision,logScale,true)
|
||||
r = mapToScale(v,[rangeVals[i],rangeVals[i+1]],[rangeKeys[i]*2.7,rangeKeys[i+1]*2.7],false,logScale,true)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -206,9 +206,9 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
var hsb = rgbToHsb({r:v[0],g:v[1],b:v[2]})
|
||||
|
||||
var w = mapToScale(hsb.s,[0,100],[0,100],widgetData.precision),
|
||||
h = mapToScale(hsb.b,[0,100],[0,100],widgetData.precision),
|
||||
hueW = mapToScale(hsb.h,[0,360],[0,100],widgetData.precision)
|
||||
var w = mapToScale(hsb.s,[0,100],[0,100],false),
|
||||
h = mapToScale(hsb.b,[0,100],[0,100],false),
|
||||
hueW = mapToScale(hsb.h,[0,360],[0,100],false)
|
||||
|
||||
rgbHandle[0].setAttribute('style',`transform:translate3d(${pad.width*w/100}px, -${pad.height*h/100}px,0)`)
|
||||
hueHandle[0].setAttribute('style',`transform:translate3d(${pad.width*hueW/100}px,0,0)`)
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ module.exports = {
|
|||
|
||||
value = Math.max(Math.min(rangeOut[0],rangeOut[1]),Math.min(value,Math.max(rangeOut[0],rangeOut[1])))
|
||||
|
||||
value = Math.round(value*roundFactor)/roundFactor
|
||||
if (precision!==false) value = Math.round(value*roundFactor)/roundFactor
|
||||
|
||||
|
||||
return value
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ module.exports.create = function(widgetData,container) {
|
|||
v[i] = clip(Math.round(v[i]*roundFactor)/roundFactor,[range[['x','y'][i]].min,range[['x','y'][i]].max])
|
||||
}
|
||||
|
||||
var w = mapToScale(v[0],[range.x.min,range.x.max],[0,100],widgetData.precision,logScaleX,true)
|
||||
h = mapToScale(v[1],[range.y.min,range.y.max],[0,100],widgetData.precision,logScaleY,true),
|
||||
var w = mapToScale(v[0],[range.x.min,range.x.max],[0,100],false,logScaleX,true)
|
||||
h = mapToScale(v[1],[range.y.min,range.y.max],[0,100],false,logScaleY,true),
|
||||
|
||||
|
||||
widget.updateUi(w,h)
|
||||
|
|
|
|||
|
|
@ -1960,7 +1960,7 @@ module.exports.create = function(widgetData,container) {
|
|||
v=clip(Math.round(v*roundFactor)/roundFactor,[rangeVals[0],rangeVals.slice(-1)[0]])
|
||||
for (var i=0;i<rangeVals.length-1;i++) {
|
||||
if (v <= rangeVals[i+1] && v >= rangeVals[i]) {
|
||||
h = mapToScale(v,[rangeVals[i],rangeVals[i+1]],[rangeKeys[i],rangeKeys[i+1]],widgetData.precision,logScale,true)
|
||||
h = mapToScale(v,[rangeVals[i],rangeVals[i+1]],[rangeKeys[i],rangeKeys[i+1]],false,logScale,true)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
@ -2249,7 +2249,7 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
for (var i=0;i<rangeVals.length-1;i++) {
|
||||
if (v <= rangeVals[i+1] && v >= rangeVals[i]) {
|
||||
r = mapToScale(v,[rangeVals[i],rangeVals[i+1]],[rangeKeys[i]*2.7,rangeKeys[i+1]*2.7],widgetData.precision,logScale,true)
|
||||
r = mapToScale(v,[rangeVals[i],rangeVals[i+1]],[rangeKeys[i]*2.7,rangeKeys[i+1]*2.7],false,logScale,true)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
@ -3230,9 +3230,9 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
var hsb = rgbToHsb({r:v[0],g:v[1],b:v[2]})
|
||||
|
||||
var w = mapToScale(hsb.s,[0,100],[0,100],widgetData.precision),
|
||||
h = mapToScale(hsb.b,[0,100],[0,100],widgetData.precision),
|
||||
hueW = mapToScale(hsb.h,[0,360],[0,100],widgetData.precision)
|
||||
var w = mapToScale(hsb.s,[0,100],[0,100],false),
|
||||
h = mapToScale(hsb.b,[0,100],[0,100],false),
|
||||
hueW = mapToScale(hsb.h,[0,360],[0,100],false)
|
||||
|
||||
rgbHandle[0].setAttribute('style',`transform:translate3d(${pad.width*w/100}px, -${pad.height*h/100}px,0)`)
|
||||
hueHandle[0].setAttribute('style',`transform:translate3d(${pad.width*hueW/100}px,0,0)`)
|
||||
|
|
@ -3604,7 +3604,7 @@ module.exports = {
|
|||
|
||||
value = Math.max(Math.min(rangeOut[0],rangeOut[1]),Math.min(value,Math.max(rangeOut[0],rangeOut[1])))
|
||||
|
||||
value = Math.round(value*roundFactor)/roundFactor
|
||||
if (precision!==false) value = Math.round(value*roundFactor)/roundFactor
|
||||
|
||||
|
||||
return value
|
||||
|
|
@ -3983,8 +3983,8 @@ module.exports.create = function(widgetData,container) {
|
|||
v[i] = clip(Math.round(v[i]*roundFactor)/roundFactor,[range[['x','y'][i]].min,range[['x','y'][i]].max])
|
||||
}
|
||||
|
||||
var w = mapToScale(v[0],[range.x.min,range.x.max],[0,100],widgetData.precision,logScaleX,true)
|
||||
h = mapToScale(v[1],[range.y.min,range.y.max],[0,100],widgetData.precision,logScaleY,true),
|
||||
var w = mapToScale(v[0],[range.x.min,range.x.max],[0,100],false,logScaleX,true)
|
||||
h = mapToScale(v[1],[range.y.min,range.y.max],[0,100],false,logScaleY,true),
|
||||
|
||||
|
||||
widget.updateUi(w,h)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "open-stage-control",
|
||||
"productName": "Open Stage Control",
|
||||
"description": "A libre desktop OSC bi-directionnal control surface application.",
|
||||
"version": "0.5.1",
|
||||
"version": "0.5.2",
|
||||
"main": "index.js",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet / AMMD",
|
||||
|
|
@ -15,13 +15,12 @@
|
|||
"socket.io-client": "1.4.6",
|
||||
"socketio-wildcard": "0.3.0",
|
||||
"express": "4.13.4",
|
||||
"electron-prebuilt": "1.0.2"
|
||||
"electron-prebuilt": "1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "13.0.1",
|
||||
"devtron": "^1.0.0",
|
||||
"node-sass": "^3.4.2",
|
||||
"nodemon": "^1.9.1"
|
||||
"node-sass": "^3.7.0",
|
||||
"nodemon": "^1.9.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"electron-installer-debian": "0.3.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue