Remove unused site rotation code (vestige of Periscope)

This commit is contained in:
Max Goodhart
2026-01-31 20:08:05 -08:00
parent c2c11e9c54
commit 8c7415c008

View File

@@ -80,23 +80,17 @@ class RotationController {
constructor(video: HTMLVideoElement) {
this.video = video
this.siteRotation = 0
this.customRotation = 0
}
_update() {
const rotation = (this.siteRotation + this.customRotation) % 360
const rotation = this.customRotation % 360
if (![0, 90, 180, 270].includes(rotation)) {
console.warn('ignoring invalid rotation', rotation)
}
this.video.className = `__rot${rotation}__`
}
setSite(rotation = 0) {
this.siteRotation = rotation
this._update()
}
setCustom(rotation = 0) {
this.customRotation = rotation
this._update()