question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate Events at window

See original GitHub issue

Expected behaviour

A single ‘play’ event should be capture-able at the window when an HTML5 player is interacted with.

Actual behaviour

Plyr emits a duplicate CustomEvent with a special property pointing to the Plyr instance.

Environment

  • Browser:
  • Version:
  • Operating System:
  • Version:

Steps to reproduce

  • Add a capturing listener window.addEventListener('play', console.log, true);
  • Click the Play button

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sampottscommented, Apr 5, 2018

I’ll leave it open as a reminder

1reaction
DanWilkersoncommented, Apr 5, 2018

Oh, also, there’s an easy fix to check the event - Event.isTrusted will be false if the Event is not natively triggered. That’s only useful for folks who are aware of the issue, though, and I’m concerned about those who aren’t.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate Log Entries In Windows Event Logs - TechNet
I've only noticed recently but I seem to be getting a lot of duplicate log entries in my windows events System, Application and...
Read more >
How to prevent duplicate events - kiko.io
Most important parameter on removing is the instance of the event handler, which was used the add the event previously.
Read more >
If you have duplicate events on your iCloud Calendar
If you see duplicate calendars or events on your iPhone, iPad, iPod touch, Mac, or PC after you set up iCloud Calendar, follow...
Read more >
Duplicate Events - Knowledgebase
You can also find the Duplicate Event button on the editor page of the event that you'd like to duplicate. A new window...
Read more >
Duplicate event listeners when multiple windows are open ...
You should make a variable to tell if the event is already being listened.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found