diff options
author | Stefan <stefan@stefans-entwicklerecke.de> | 2018-02-03 12:57:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-03 12:57:42 +0100 |
commit | 89ad3cb809c9069325cebb30f67b887abf582028 (patch) | |
tree | 6a7bc87024e315846f8ae66d3da42968d9f9dd13 /src/node/utils | |
parent | 32027134cbe4e37ced89091bf05e9fd07980ca12 (diff) | |
parent | 1e25e7fc773eb360b2fed52c39c3a14bc2a443ff (diff) | |
download | etherpad-lite-master.zip |
Diffstat (limited to 'src/node/utils')
-rw-r--r-- | src/node/utils/Settings.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/node/utils/Settings.js b/src/node/utils/Settings.js index 660b7afb..cf7fea80 100644 --- a/src/node/utils/Settings.js +++ b/src/node/utils/Settings.js @@ -247,6 +247,33 @@ exports.users = {}; */ exports.showSettingsInAdminPage = true; +/* +* By default, when caret is moved out of viewport, it scrolls the minimum height needed to make this +* line visible. +*/ +exports.scrollWhenFocusLineIsOutOfViewport = { + /* + * Percentage of viewport height to be additionally scrolled. + */ + "percentage": { + "editionAboveViewport": 0, + "editionBelowViewport": 0 + }, + /* + * Time (in milliseconds) used to animate the scroll transition. Set to 0 to disable animation + */ + "duration": 0, + /* + * Flag to control if it should scroll when user places the caret in the last line of the viewport + */ + /* + * Percentage of viewport height to be additionally scrolled when user presses arrow up + * in the line of the top of the viewport. + */ + "percentageToScrollWhenUserPressesArrowUp": 0, + "scrollWhenCaretIsInTheLastLineOfViewport": false +}; + //checks if abiword is avaiable exports.abiwordAvailable = function() { |