diff --git a/src/embed/index.html b/src/embed/index.html index cd09ca7d..99adb375 100644 --- a/src/embed/index.html +++ b/src/embed/index.html @@ -156,6 +156,7 @@ } options.soundcite = true; + options.hide_swipe_to_navigate = true; window.options = options window.timeline = new TL.Timeline('timeline-embed', options.source, options) diff --git a/src/js/slider/StorySlider.js b/src/js/slider/StorySlider.js index d4546616..46d30cac 100755 --- a/src/js/slider/StorySlider.js +++ b/src/js/slider/StorySlider.js @@ -423,14 +423,17 @@ export class StorySlider { }); this._swipable.enable(); - // Message - this._message = new Message(this._el.container, { - message_class: "tl-message-full", - message_icon_class: "tl-icon-swipe-left" - }, - this.getLanguage()); - this._message.updateMessage(this._("swipe_to_navigate")); - this._message.addTo(this._el.container); + if (!this.options.hide_swipe_to_navigate) + { + // Message + this._message = new Message(this._el.container, { + message_class: "tl-message-full", + message_icon_class: "tl-icon-swipe-left" + }, + this.getLanguage()); + this._message.updateMessage(this._("swipe_to_navigate")); + this._message.addTo(this._el.container); + } } } diff --git a/src/js/timeline/Timeline.js b/src/js/timeline/Timeline.js index 1042924d..9bd8e0e2 100644 --- a/src/js/timeline/Timeline.js +++ b/src/js/timeline/Timeline.js @@ -142,6 +142,7 @@ class Timeline { // postfixing. The default proxy should work in most cases, but only for TimelineJS sheets. sheets_proxy: 'https://sheets-proxy.knightlab.com/proxy/', soundcite: false, + hide_swipe_to_navigate: false, }; // Animation Objects diff --git a/src/template/index.html b/src/template/index.html index ac93237b..4889b0eb 100644 --- a/src/template/index.html +++ b/src/template/index.html @@ -13,6 +13,7 @@ hash_bookmark: true, start_at_end: false, autolink: false, + hide_swipe_to_navigate: true, sheets_proxy: 'https://sheets-proxy.knightlab.com/proxy/' } diff --git a/website/templates/docs/options.html b/website/templates/docs/options.html index 87f09101..afb4d5b1 100644 --- a/website/templates/docs/options.html +++ b/website/templates/docs/options.html @@ -430,6 +430,16 @@
hide_swipe_to_navigate
+