Skip to content

Commit

Permalink
Video controls UI detection is faster
Browse files Browse the repository at this point in the history
- Performance is particularly bad when subtitle blur is enabled.
  • Loading branch information
killergerbah committed Sep 8, 2024
1 parent 32bd244 commit fdaf56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/src/controllers/controls-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export default class ControlsController {

*_samplePoints() {
const rect = this.video.getBoundingClientRect();
const stepX = rect.width / 25;
const stepY = rect.height / 25;
const stepX = rect.width / 12;
const stepY = rect.height / 12;
const maxX = rect.width + rect.x;
const maxY = rect.height + rect.y;

Expand Down

0 comments on commit fdaf56e

Please sign in to comment.