Rename window scroll (#1390)

* Rename WindowScroll to ScrollElement

* Rename window-scroll.js to scroll-element.js

* Update global order
This commit is contained in:
toasted-nutbread 2021-02-14 11:36:44 -05:00 committed by GitHub
parent 5268c5d1bc
commit 94201ed44a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -29,8 +29,8 @@
* PopupFactory * PopupFactory
* PopupMenu * PopupMenu
* QueryParser * QueryParser
* ScrollElement
* TextScanner * TextScanner
* WindowScroll
* api * api
* dynamicLoader * dynamicLoader
*/ */
@ -90,7 +90,7 @@ class Display extends EventDispatcher {
this._updateAdderButtonsPromise = Promise.resolve(); this._updateAdderButtonsPromise = Promise.resolve();
this._contentScrollElement = document.querySelector('#content-scroll'); this._contentScrollElement = document.querySelector('#content-scroll');
this._contentScrollBodyElement = document.querySelector('#content-body'); 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._closeButton = document.querySelector('#close-button');
this._navigationPreviousButton = document.querySelector('#navigate-previous-button'); this._navigationPreviousButton = document.querySelector('#navigate-previous-button');
this._navigationNextButton = document.querySelector('#navigate-next-button'); this._navigationNextButton = document.querySelector('#navigate-next-button');

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
class WindowScroll { class ScrollElement {
constructor(node) { constructor(node) {
this._node = node; this._node = node;
this._animationRequestId = null; this._animationRequestId = null;

View File

@ -116,7 +116,7 @@
<script src="/js/media/media-loader.js"></script> <script src="/js/media/media-loader.js"></script>
<script src="/js/dom/panel-element.js"></script> <script src="/js/dom/panel-element.js"></script>
<script src="/js/dom/popup-menu.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/language/text-scanner.js"></script>
<script src="/js/dom/html-template-collection.js"></script> <script src="/js/dom/html-template-collection.js"></script>
<script src="/js/media/text-to-speech-audio.js"></script> <script src="/js/media/text-to-speech-audio.js"></script>

View File

@ -99,7 +99,7 @@
<script src="/js/input/hotkey-util.js"></script> <script src="/js/input/hotkey-util.js"></script>
<script src="/js/media/media-loader.js"></script> <script src="/js/media/media-loader.js"></script>
<script src="/js/dom/popup-menu.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/language/text-scanner.js"></script>
<script src="/js/dom/html-template-collection.js"></script> <script src="/js/dom/html-template-collection.js"></script>
<script src="/js/media/text-to-speech-audio.js"></script> <script src="/js/media/text-to-speech-audio.js"></script>