We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c32735 commit 5eea602Copy full SHA for 5eea602
parallax.js
@@ -92,7 +92,7 @@
92
this.positionY + (isNaN(this.positionY)? '' : 'px');
93
94
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
95
- if (this.iosFix && !this.$element.is('img')) {
+ if (this.imageSrc && this.iosFix && !this.$element.is('img')) {
96
this.$element.css({
97
backgroundImage: 'url(' + this.imageSrc + ')',
98
backgroundSize: 'cover',
@@ -103,7 +103,7 @@
103
}
104
105
if (navigator.userAgent.match(/(Android)/)) {
106
- if (this.androidFix && !this.$element.is('img')) {
+ if (this.imageSrc && this.androidFix && !this.$element.is('img')) {
107
108
109
0 commit comments