diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-14 11:36:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-14 11:36:44 -0500 |
commit | 94201ed44ac1835637e77a6a7f583aca70bbf2d3 (patch) | |
tree | ab9b5ba3af64984c8e1697013e33ca2ee6b5a8b2 | |
parent | 5268c5d1bc079ac99e99cf04853d3dea22def403 (diff) |
Rename window scroll (#1390)
* Rename WindowScroll to ScrollElement
* Rename window-scroll.js to scroll-element.js
* Update global order
-rw-r--r-- | ext/js/display/display.js | 4 | ||||
-rw-r--r-- | ext/js/dom/scroll-element.js (renamed from ext/js/dom/window-scroll.js) | 2 | ||||
-rw-r--r-- | ext/popup.html | 2 | ||||
-rw-r--r-- | ext/search.html | 2 |
4 files changed, 5 insertions, 5 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; diff --git a/ext/popup.html b/ext/popup.html index 9f3220bc..1d950930 100644 --- a/ext/popup.html +++ b/ext/popup.html @@ -116,7 +116,7 @@ <script src="/js/media/media-loader.js"></script> <script src="/js/dom/panel-element.js"></script> <script src="/js/dom/popup-menu.js"></script> -<script src="/js/dom/window-scroll.js"></script> +<script src="/js/dom/scroll-element.js"></script> <script src="/js/language/text-scanner.js"></script> <script src="/js/dom/html-template-collection.js"></script> <script src="/js/media/text-to-speech-audio.js"></script> diff --git a/ext/search.html b/ext/search.html index 65e04949..d403effb 100644 --- a/ext/search.html +++ b/ext/search.html @@ -99,7 +99,7 @@ <script src="/js/input/hotkey-util.js"></script> <script src="/js/media/media-loader.js"></script> <script src="/js/dom/popup-menu.js"></script> -<script src="/js/dom/window-scroll.js"></script> +<script src="/js/dom/scroll-element.js"></script> <script src="/js/language/text-scanner.js"></script> <script src="/js/dom/html-template-collection.js"></script> <script src="/js/media/text-to-speech-audio.js"></script> |