Skip to content

Commit 5987562

Browse files
authored
Merge branch 'develop' into greenkeeper/chromedriver-76.0.0
2 parents 5ec2c42 + 3fae69e commit 5987562

File tree

6 files changed

+14
-19
lines changed

6 files changed

+14
-19
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"rimraf": "^2.6.1",
107107
"scratch-audio": "0.1.0-prerelease.20190114210212",
108108
"scratch-l10n": "3.5.20190724160319",
109-
"scratch-blocks": "0.1.0-prerelease.1563990552",
109+
"scratch-blocks": "0.1.0-prerelease.1564581595",
110110
"scratch-paint": "0.2.0-prerelease.20190729153946",
111111
"scratch-render": "0.1.0-prerelease.20190605151415",
112112
"scratch-storage": "1.3.2",
Lines changed: 2 additions & 7 deletions
Loading
Lines changed: 2 additions & 7 deletions
Loading

src/containers/audio-selector.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class AudioSelector extends React.Component {
4343
});
4444
}
4545
componentWillReceiveProps (newProps) {
46-
if (newProps.trimStart === this.props.trimStart) return;
46+
const {trimStart, trimEnd} = this.props;
47+
if (newProps.trimStart === trimStart && newProps.trimEnd === trimEnd) return;
4748
this.setState({
4849
trimStart: newProps.trimStart,
4950
trimEnd: newProps.trimEnd

src/containers/audio-trimmer.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ class AudioTrimmer extends React.Component {
4242
this.containerSize = this.containerElement.getBoundingClientRect().width;
4343
this.trimStartDragRecognizer.start(e);
4444
this.initialTrim = this.props.trimStart;
45+
e.stopPropagation();
46+
e.preventDefault();
4547
}
4648
handleTrimEndMouseDown (e) {
4749
this.containerSize = this.containerElement.getBoundingClientRect().width;
4850
this.trimEndDragRecognizer.start(e);
4951
this.initialTrim = this.props.trimEnd;
52+
e.stopPropagation();
53+
e.preventDefault();
5054
}
5155
storeRef (el) {
5256
this.containerElement = el;

0 commit comments

Comments
 (0)