Skip to content

Added check that target.closest is a function in mousemov.vol code#2840

Merged
digitas-git merged 1 commit intomediaelement:masterfrom
JoshStegmaier:firefox-volume-target
Jul 29, 2023
Merged

Added check that target.closest is a function in mousemov.vol code#2840
digitas-git merged 1 commit intomediaelement:masterfrom
JoshStegmaier:firefox-volume-target

Conversation

@JoshStegmaier
Copy link
Contributor

This fixes #2839.

This checks if the target object as the closest function before calling it, avoid the error in the issue.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 74.376% when pulling ddfc0f6 on JoshStegmaier:firefox-volume-target into d8a667f on mediaelement:master.

@digitas-git
Copy link
Collaborator

@JoshStegmaier Thanks for the PR, this will be in the next version.

@digitas-git digitas-git merged commit 4d86d2b into mediaelement:master Jul 29, 2023
davidnovodchuk added a commit to davidnovodchuk/mediaelement that referenced this pull request Nov 29, 2024
This is a similar fix to mediaelement#2840
This prevents a crash on Firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In Firefox, the code bound to 'mousemove.vol' throws an error when the mouse leaves the windows while being held down.

3 participants

Comments