bbc/peaks.js

" peaks.segments.add(): startTime should not be negative " by insert-segment mode

jason30704 opened this issue · 4 comments

Hello,
I found that when using insert-segment mode, if you click close to the border, there is a chance that the following error may be triggered.

1.mp4

image

This happens because MouseEvent offsetX property can sometimes be -1. I'm not sure why this happens.

Is there any way to prevent this error now?

Not yet, I have very little time to investigate. But thank you, everything you're reporting will help make improvements.