panel: scrollbar issue on iOS 13+

This commit is contained in:
bordun 2021-05-20 11:10:54 +02:00
parent c89252f4cc
commit 422cec2ba4
3 changed files with 6 additions and 5 deletions

View file

@ -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()`

View file

@ -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)

View file

@ -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':