Skip to content

Commit 078e3e2

Browse files
committed
crop: Clamp cursor when updating crop zone state
A continuation of 000fbe8 as occivink/mpv-scripts#67 was updated.
1 parent d5e78c4 commit 078e3e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/crop.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ function update_crop_zone_state()
314314
cancel_crop()
315315
return
316316
end
317+
cursor = clamp_point(cursor, dim)
317318
if crop_first_corner == nil then
318319
crop_first_corner = screen_to_video_norm(cursor, dim)
319320
redraw()

0 commit comments

Comments
 (0)