Skip to content

Commit

Permalink
Merge pull request #35 from hyperaudio/34-autoscroll-control
Browse files Browse the repository at this point in the history
34 added hooks to turn autoscroll on/off
  • Loading branch information
maboa authored Feb 17, 2021
2 parents 8fbac7f + 5f354b4 commit b9ab86d
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 b9ab86d

Please sign in to comment.