summaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/display/display.js4
-rw-r--r--ext/js/dom/scroll-element.js (renamed from ext/js/dom/window-scroll.js)2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index c522fe14..fe4160a6 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -29,8 +29,8 @@
* PopupFactory
* PopupMenu
* QueryParser
+ * ScrollElement
* TextScanner
- * WindowScroll
* api
* dynamicLoader
*/
@@ -90,7 +90,7 @@ class Display extends EventDispatcher {
this._updateAdderButtonsPromise = Promise.resolve();
this._contentScrollElement = document.querySelector('#content-scroll');
this._contentScrollBodyElement = document.querySelector('#content-body');
- this._windowScroll = new WindowScroll(this._contentScrollElement);
+ this._windowScroll = new ScrollElement(this._contentScrollElement);
this._closeButton = document.querySelector('#close-button');
this._navigationPreviousButton = document.querySelector('#navigate-previous-button');
this._navigationNextButton = document.querySelector('#navigate-next-button');
diff --git a/ext/js/dom/window-scroll.js b/ext/js/dom/scroll-element.js
index 33577795..173ce499 100644
--- a/ext/js/dom/window-scroll.js
+++ b/ext/js/dom/scroll-element.js
@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-class WindowScroll {
+class ScrollElement {
constructor(node) {
this._node = node;
this._animationRequestId = null;