Skip to content
Snippets Groups Projects
Commit d0efc9a9 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Add container with overflow hidden to prevent scrollbars from playhead

parent d4bf303e
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,15 @@ $hover-scale: 2;
border: 1px solid $red-tertiary;
}
.playhead-container {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
overflow: hidden;
}
.playhead {
/*
Even though playhead is just a line, it is 100% width (the width of the waveform)
......
......@@ -32,12 +32,14 @@ const AudioTrimmer = props => (
)}
{props.playhead ? (
<Box
className={classNames(styles.trimLine, styles.playhead)}
style={{
transform: `translateX(${100 * props.playhead}%)`
}}
/>
<div className={styles.playheadContainer}>
<div
className={classNames(styles.trimLine, styles.playhead)}
style={{
transform: `translateX(${100 * props.playhead}%)`
}}
/>
</div>
) : null}
{props.trimEnd === null ? null : (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment