Merge pull request #4422 from paulkaplan/no-playhead-scrollbars

Add container with overflow hidden to prevent scrollbars from playhead
This commit is contained in:
Paul Kaplan authored and GitHub committed 2019-01-23 17:05:15 -05:00
commit 3c16bf31ec
2 files changed
+17 -6

No files matched your search

@@ -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 : (