From 3d15759fb9d044578ba4793b279808b2983e48d9 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 29 May 2024 21:56:18 -0700 Subject: [PATCH] Don't constantly commit CA transactions when scrubbing video Closes #488 --- Tusker/Screens/Gallery/VideoControlsViewController.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tusker/Screens/Gallery/VideoControlsViewController.swift b/Tusker/Screens/Gallery/VideoControlsViewController.swift index 08d18faa..a7eac5bf 100644 --- a/Tusker/Screens/Gallery/VideoControlsViewController.swift +++ b/Tusker/Screens/Gallery/VideoControlsViewController.swift @@ -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 {