Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hlomzik committed Mar 6, 2025
1 parent 329968e commit 11d58e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 6 additions & 1 deletion web/libs/editor/src/components/Timeline/Controls/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Tooltip } from "../../../common/Tooltip/Tooltip";
import { Block, Elem } from "../../../utils/bem";

import "./Slider.scss";

export interface SliderProps {
description?: string;
info?: string;
Expand Down Expand Up @@ -59,7 +60,11 @@ export const Slider: FC<SliderProps> = ({ description, info, max, min, value, st
<Elem name="control">
<Elem name="info">
{description}
{info && <Tooltip title={info}><IconInfoConfig /></Tooltip>}
{info && (
<Tooltip title={info}>
<IconInfoConfig />
</Tooltip>
)}
</Elem>
<Elem
name="input"
Expand Down
10 changes: 8 additions & 2 deletions web/libs/editor/src/lib/AudioUltra/Regions/Regions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ export class Regions {

const addRegion = () => {
const { container, zoomedWidth, fullWidth } = this.visualizer;
const { settings: { autoPlayNewSegments }, duration } = this.waveform;
const {
settings: { autoPlayNewSegments },
duration,
} = this.waveform;
const scrollLeft = this.visualizer.getScrollLeftPx();

startX = clamp(getCursorPositionX(e, container) + scrollLeft, 0, fullWidth);
Expand Down Expand Up @@ -352,7 +355,10 @@ export class Regions {
};

const handleMouseUp = () => {
const { player, settings: { autoPlayNewSegments } } = this.waveform;
const {
player,
settings: { autoPlayNewSegments },
} = this.waveform;

document.removeEventListener("mousemove", handleMouseMove);
document.removeEventListener("mouseup", handleMouseUp);
Expand Down

0 comments on commit 11d58e5

Please sign in to comment.