From 422cec2ba4d845e7a0e154a9ee0f5b1e7a13694b Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 20 May 2021 11:10:54 +0200 Subject: [PATCH] panel: scrollbar issue on iOS 13+ --- CHANGELOG.md | 5 +++-- src/client/widgets/containers/modal.js | 2 +- src/client/widgets/containers/panel.js | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ccc1243..826e9e5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,11 @@ # Changelog -## next +## 1.9.8 - bug fixes - matrix: update children when `props` is modified even when the result for `$ = 0` doesn't change - - fragments: fragment widgets empty when reloading + - fragments: fragment widgets empty when reloading + - panel: scrollbar issue on iOS 13+ - scripting - expose `console.clear()` diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.js index 21831c87..99cabbb9 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.js @@ -69,7 +69,7 @@ class Modal extends Panel { this.popupContent = DOM.get(this.popup, '.popup-content')[0] - if (iOS13) { + if (iOS13 && this.getProp('scroll')) { for (let dir in this.iosScrollbars) { this.container.removeChild(this.iosScrollbars[dir].container) this.popupContent.appendChild(this.iosScrollbars[dir].container) diff --git a/src/client/widgets/containers/panel.js b/src/client/widgets/containers/panel.js index b829d3dc..05fc3896 100644 --- a/src/client/widgets/containers/panel.js +++ b/src/client/widgets/containers/panel.js @@ -85,7 +85,7 @@ class Panel extends Container() { this.container.classList.add('contains-widgets') - if (iOS13) { + if (iOS13 && this.getProp('scroll')) { faderDefaults = faderDefaults || Fader.defaults()._props() @@ -291,7 +291,7 @@ class Panel extends Container() { case 'colorBg': this.setCssVariables() case 'colorWidget': - if (iOS13) this.checkScrollBars() + if (iOS13 && this.getProp('scroll')) this.checkScrollBars() case 'colorText': case 'colorFill': case 'colorStroke':