colthreepv / colthreepv/angular-media-player
Wrong calculation in seekPercentage() in examples.
- Dominant language
- JavaScript
- Stars
- 228
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
$event.target.offsetWidth have different value depends on click place.

If we click on the area which not was played before everything {green arrow} seekPercentage works good. Because target area is
$event.target = (div.progress) which have static width.
But if click target in played area {red arrow}.
$event.target = (div.progress-bar) which have fluid width, calculation become wrong.
To reproduce bug, just click two times in one place at red arrow (div.progress-bar).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the examples area by locating seekPercentage() and inspect how $event.target is selected for div.progress and div.progress-bar. Reproduce the bug by clicking twice in the played area, then verify that repeated clicks at the same position calculate the same seek percentage as clicks in the unplayed area.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100