From 23e1a1c793d643a71834126fdb04dc935edac1f4 Mon Sep 17 00:00:00 2001 From: bordun Date: Tue, 13 Oct 2020 19:43:53 +0200 Subject: [PATCH] fullscreen: lack of support not detected on some ios devices multixy: labels not hidden when `ephemeral` is `true` --- CHANGELOG.md | 2 ++ package.json | 2 +- src/client/ui/fullscreen.js | 5 +++-- src/client/widgets/pads/multixy.js | 8 ++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3747ac4..60bde4d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index a4cb26e1..4e6f1dc3 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/client/ui/fullscreen.js b/src/client/ui/fullscreen.js index b3eebf33..cb069a36 100644 --- a/src/client/ui/fullscreen.js +++ b/src/client/ui/fullscreen.js @@ -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 diff --git a/src/client/widgets/pads/multixy.js b/src/client/widgets/pads/multixy.js index 299c97d2..bf0bdb64 100644 --- a/src/client/widgets/pads/multixy.js +++ b/src/client/widgets/pads/multixy.js @@ -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