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

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

Open
jason30704 opened this issue Sep 2, 2024 · 3 comments

Comments

@jason30704
Copy link

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

@chrisn
Copy link
Member

chrisn commented Sep 5, 2024

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

@jason30704
Copy link
Author

Is there any way to prevent this error now?

@chrisn
Copy link
Member

chrisn commented Sep 6, 2024

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

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

No branches or pull requests

2 participants