Skip to content

Commit 198056f

Browse files
author
Julian Xhokaxhiu
committed
Add an option for bars removal on mobile.
1 parent 0dfd2fa commit 198056f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/js/jquery.swipebox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
useCSS : true,
1111
useSVG : true,
1212
initialIndexOnArray : 0,
13+
removeBarsOnMobile : true,
1314
hideCloseButtonOnMobile : false,
1415
hideBarsDelay : 3000,
1516
videoMaxWidth : 1140,
@@ -173,7 +174,7 @@
173174
} );
174175
}
175176

176-
if ( isMobile ) {
177+
if ( isMobile && plugin.settings.removeBarsOnMobile ) {
177178
$( '#swipebox-bottom-bar, #swipebox-top-bar' ).remove();
178179
}
179180

0 commit comments

Comments
 (0)