forked from shadowfacts/Tusker
Don't constantly commit CA transactions when scrubbing video
Closes #488
This commit is contained in:
parent
09999175f7
commit
3d15759fb9
|
@ -256,10 +256,8 @@ private class VideoScrubbingControl: UIControl {
|
||||||
|
|
||||||
private func updateFillLayerMask() {
|
private func updateFillLayerMask() {
|
||||||
// I don't know where this animation is coming from
|
// 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)
|
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 {
|
override func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
|
||||||
|
|
Loading…
Reference in New Issue