Don't constantly commit CA transactions when scrubbing video

Closes #488
This commit is contained in:
Shadowfacts 2024-05-29 21:56:18 -07:00
parent 09999175f7
commit 3d15759fb9
1 changed files with 1 additions and 3 deletions

View File

@ -256,10 +256,8 @@ private class VideoScrubbingControl: UIControl {
private func updateFillLayerMask() {
// I don't know where this animation is coming from
CATransaction.begin()
CATransaction.setDisableActions(true)
fillMaskLayer.frame = CGRect(x: 0, y: 0, width: fractionComplete * bounds.width, height: 8)
CATransaction.commit()
fillMaskLayer.removeAllAnimations()
}
override func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {