fullscreen: lack of support not detected on some ios devices
multixy: labels not hidden when `ephemeral` is `true`
This commit is contained in:
parent
ddd7c036fa
commit
23e1a1c793
4 changed files with 14 additions and 3 deletions
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
- bug fixes
|
||||
- launcher: midi device names containing multiple spaces not parsed correctly
|
||||
- fullscreen: lack of support not detected on some ios devices
|
||||
- multixy: labels not hidden when `ephemeral` is `true`
|
||||
|
||||
## 1.5.1
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "open-stage-control",
|
||||
"productName": "Open Stage Control",
|
||||
"description": "Libre and modular OSC / MIDI controller",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet",
|
||||
"email": "jean-emmanuel@ammd.net"
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
var screenfull = require('screenfull'),
|
||||
UiModal = require('./ui-modal'),
|
||||
locales = require('../locales')
|
||||
locales = require('../locales'),
|
||||
iOS = require('./ios')
|
||||
|
||||
var fullscreen
|
||||
|
||||
if (screenfull.isEnabled) {
|
||||
if (screenfull.isEnabled && !iOS) {
|
||||
|
||||
fullscreen = screenfull
|
||||
|
||||
|
|
|
|||
|
|
@ -118,6 +118,8 @@ module.exports = class MultiXy extends Pad {
|
|||
|
||||
this.pads[id].trigger('draginit', e)
|
||||
|
||||
if (this.getProp('ephemeral')) this.batchDraw()
|
||||
|
||||
}, {element: this.widget, multitouch: true})
|
||||
|
||||
this.on('drag',(e)=>{
|
||||
|
|
@ -144,6 +146,8 @@ module.exports = class MultiXy extends Pad {
|
|||
|
||||
delete this.touchMap[e.pointerId]
|
||||
|
||||
if (this.getProp('ephemeral')) this.batchDraw()
|
||||
|
||||
}, {element: this.widget, multitouch: true})
|
||||
|
||||
this.on('change',(e)=>{
|
||||
|
|
@ -209,7 +213,11 @@ module.exports = class MultiXy extends Pad {
|
|||
|
||||
this.clear()
|
||||
|
||||
|
||||
for (var i=0;i<this.npoints;i++) {
|
||||
|
||||
if (this.pads[i].getProp('ephemeral') && !this.pads[i].active) continue
|
||||
|
||||
var margin = this.padPadding,
|
||||
x = clip(this.pads[i].faders.x.percent,[0,100]) / 100 * (this.width - 2 * margin) + margin,
|
||||
y = (100 - clip(this.pads[i].faders.y.percent,[0,100])) / 100 * (this.height - 2 * margin) + margin,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue