Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the sidebar resizing event listeners with an AbortController #18593

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

  • Use a few local variables in PDFSidebar.#addEventListeners

    This, ever so slightly, shortens the code for a couple of repeatedly accessed class fields.

  • Stop sidebar resizing on "blur" events

    Because of an old oversight (by me) we don't stop sidebar resizing when the browser window loses focus, which seems generally wrong and can also lead to duplicate mouse-related event listeners being registered.

  • Remove the sidebar resizing event listeners with an AbortController

This, ever so slightly, shortens the code for a couple of repeatedly accessed class fields.
Because of an old oversight (by me) we don't stop sidebar resizing when the browser window loses focus, which seems generally wrong and can also lead to duplicate mouse-related event listeners being registered.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/9467ca5a662624d/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/9467ca5a662624d/output.txt

Total script time: 1.03 mins

Published

@timvandermeij timvandermeij merged commit 6e4b347 into mozilla:master Aug 10, 2024
6 checks passed
@timvandermeij
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants