default to pause

This commit is contained in:
j 2022-09-26 11:36:24 +01:00
parent 9cf3c485f6
commit eb7152bde6

View file

@ -66,12 +66,12 @@ class PandoraScroll extends HTMLElement {
_config() { _config() {
var config = { var config = {
loop: false pause: true
} }
for (var i=0; i<this.attributes.length; i++) { for (var i=0; i<this.attributes.length; i++) {
var a = this.attributes[i] var a = this.attributes[i]
config[a.name] = a.value config[a.name] = a.value
if (a.name == 'loop') { if (a.name == 'pause') {
config[a.name] = a.value != 'false' config[a.name] = a.value != 'false'
} }
if (a.name == 'layers') { if (a.name == 'layers') {