bartekmotyl / simple-video-cutter

Windows-based tool for efficient browsing and cutting video footage
MIT License
325 stars 42 forks source link

Fix invalid positions when seeking w/ click+drag #33

Closed tbiering closed 3 years ago

tbiering commented 3 years ago

Hey bartekmotyl,

I stumbled upon an error when using click and drag to move the selection cursor on the timeline, that you may end up having negative positions or positions that exceed the total video length.

Example: Trying to move the selector to the zero-position using clicking-and-dragging but overshooting the exact pixel of 00:00:00 results in a negative timestamp and thus impacts the cutting result. Timeline

The same behaviour can be observed when overshooting the end-position and this pull request fixes it 🙂

Best regards, Thomas

bartekmotyl commented 3 years ago

Hi, thanks a lot for this fix!