broken changes

This commit is contained in:
Mark Gregory
2026-11-05 21:27:41 +00:00
parent 78c4411fa6
commit d348aa76ca
5 changed files with 27 additions and 29 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ struct DJLoopDrag {
self.viewport = viewport;secondsPerPixel = span/max(1,width);anchor = viewport+x*secondsPerPixel;original = loop
if create { mode = .create }
else if let loop {
let left = abs(anchor-loop.lowerBound),right = abs(anchor-loop.upperBound),tolerance = 8*secondsPerPixel
let left = abs(anchor-loop.lowerBound),right = abs(anchor-loop.upperBound),tolerance = min(8*secondsPerPixel,(loop.upperBound-loop.lowerBound)/4)
if min(left,right) <= tolerance { mode = left <= right ? .start : .end }
else if loop.contains(anchor) { mode = .move }
else { mode = .seek }