From 5f354b4c19b651c7b204846d20b5c3ab1c1c792e Mon Sep 17 00:00:00 2001 From: Mark Boas Date: Wed, 17 Feb 2021 15:32:57 +0100 Subject: [PATCH] 34 added hooks to turn autoscroll on/pff --- js/hyperaudio-lite.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/hyperaudio-lite.js b/js/hyperaudio-lite.js index 9cfa7622..7b5589c4 100644 --- a/js/hyperaudio-lite.js +++ b/js/hyperaudio-lite.js @@ -1,5 +1,5 @@ /*! (C) The Hyperaudio Project. MIT @license: en.wikipedia.org/wiki/MIT_License. */ -/*! Version 1.1.4 */ +/*! Version 1.1.5 */ 'use strict'; @@ -434,6 +434,14 @@ var hyperaudiolite = (function () { scrollerOffset = offset; } + hal.toggleAutoScroll = function() { + autoscroll = !autoscroll; + } + + hal.setAutoScroll = function(on) { + autoscroll = on; + } + return hal; }); \ No newline at end of file