summaryrefslogtreecommitdiff
path: root/app/client/modules/morph/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/modules/morph/views')
-rw-r--r--app/client/modules/morph/views/morph.app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/client/modules/morph/views/morph.app.js b/app/client/modules/morph/views/morph.app.js
index 029254e..5b43978 100644
--- a/app/client/modules/morph/views/morph.app.js
+++ b/app/client/modules/morph/views/morph.app.js
@@ -77,7 +77,7 @@ class MorphResults extends Component {
title="Offset"
value={this.state.a_pos}
min={0} max={1} step={0.01}
- onChange={key => this.setState({ a_pos: key, a_offset: key * (this.state.a_duration - this.state.frames) })}
+ onChange={key => this.setState({ a_pos: key, a_offset: Math.floor(key * (this.state.a_duration - this.state.frames)) })}
/>
</Group>
@@ -92,7 +92,7 @@ class MorphResults extends Component {
title="Offset"
value={this.state.b_pos}
min={0} max={1} step={0.01}
- onChange={key => this.setState({ b_pos: key, b_offset: key * (this.state.b_duration - this.state.frames) })}
+ onChange={key => this.setState({ b_pos: key, b_offset: Math.floor(key * (this.state.b_duration - this.state.frames)) })}
/>
</Group>