Skip to content

Commit

Permalink
34 added hooks to turn autoscroll on/pff
Browse files Browse the repository at this point in the history
  • Loading branch information
maboa committed Feb 17, 2021
1 parent 8fbac7f commit 5f354b4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/hyperaudio-lite.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -434,6 +434,14 @@ var hyperaudiolite = (function () {
scrollerOffset = offset;
}

hal.toggleAutoScroll = function() {
autoscroll = !autoscroll;
}

hal.setAutoScroll = function(on) {
autoscroll = on;
}

return hal;

});

0 comments on commit 5f354b4

Please sign in to comment.