Disable dragging on video to allow for scrobbling.

This commit is contained in:
Evelyn Eastmond committed 2019-05-29 09:46:08 -04:00
1 parent fa4541e85c
commit b2486380fb
2 files changed
+2 -15

No files matched your search

-8
View File
@@ -275,14 +275,6 @@
margin-right: 0.5rem;
}
.video-cover {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.steps-list {
display: flex;
flex-direction: row;
+2 -7
View File
@@ -114,17 +114,12 @@ class VideoStep extends React.Component {
}
render () {
return (
// Video step needs to know if the card is being dragged to cover the video
// so that the mouseup is not swallowed by the iframe.
<div className={styles.stepVideo}>
<div
className={`wistia_embed wistia_async_${this.props.video}`}
id="video-div"
style={{height: `257px`, width: `466px`}}
>
{//this.props.dragging ? (
//<div className={styles.videoCover} />
//) : null
}
&nbsp;
</div>
</div>
@@ -133,7 +128,6 @@ class VideoStep extends React.Component {
}
VideoStep.propTypes = {
dragging: PropTypes.bool.isRequired,
expanded: PropTypes.bool.isRequired,
video: PropTypes.string.isRequired
};
@@ -322,6 +316,7 @@ const Cards = props => {
>
<Draggable
bounds="parent"
cancel="#video-div" // disable dragging on video div
position={{x: x, y: y}}
onDrag={onDrag}
onStart={onStartDrag}