Commit graph

13 commits

Author SHA1 Message Date
John McLear
e4404d702e resolve issue with line history not being kept 2021-01-01 21:05:13 +00:00
John McLear
0b9962c6c6 working going to end of the line and beginning of first 2020-12-28 14:12:24 +00:00
John McLear
92450e071d much better ux 2020-12-28 09:34:58 +00:00
John McLear
a536b311e4 much better ux 2020-12-28 09:28:55 +00:00
John McLear
0253b54803 working page down and semi working page up 2020-12-28 09:12:45 +00:00
John McLear
d6075bd042 working basic functionality 2020-12-28 08:40:53 +00:00
John McLear
f6d9c7e705 just some thoughts on approaches 2020-12-27 23:39:20 +00:00
John McLear
e051f2f2f7 lint: scroll.js 2020-12-26 20:43:10 +00:00
Richard Hansen
f54dcbc766 lint: Re-run eslint --fix 2020-12-16 22:09:48 +00:00
Richard Hansen
8e5fd19db2 lint: Run eslint --fix on src/ 2020-11-24 20:06:12 +00:00
Richard Hansen
7df3ded66f lint: Put opening brace on same line as function
Normally I would let `eslint --fix` do this for me, but there's a bug
that causes:

    const x = function ()
    {
      // ...
    };

to become:

    const x = ()
    => {
      // ...
    };

which ESLint thinks is a syntax error. (It probably is; I don't know
enough about the automatic semicolon insertion rules to be confident.)
2020-11-24 20:06:12 +00:00
muxator
83d72d27a4 scroll: replace absolute import with relative one
Fixing this will be useful when we'll want to get rid of require-kernel.

This was introduced by f1fcd16894 ("Add settings to scroll on edition out of
viewport") in 2018-01-03.
2020-04-09 21:09:40 +02:00
Joas Souza
f1fcd16894 Add settings to scroll on edition out of viewport (#3282)
* Add scroll when it edits a line out of viewport

By default, when there is an edition of a line, which is out of the
viewport, Etherpad scrolls the minimum necessary to make this line
visible. This makes that the line stays either on the top or the bottom
of the viewport. With this commit, we add a setting to make possible to
scroll to a position x% pixels from the viewport. Besides of that, we
add a setting to make an animation of this scroll.
If nothing is changed on settings.json the Etherpad default behavior is
kept
2018-01-03 19:57:28 -02:00