fullscreen: lack of support not detected on some ios devices
multixy: labels not hidden when `ephemeral` is `true`
This commit is contained in:
parent
f48fa3bd49
commit
3dedf2cc74
4 changed files with 14 additions and 3 deletions
|
|
@ -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