summaryrefslogtreecommitdiff
path: root/app/client/modules/morph/views
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-26 14:28:56 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-26 14:28:56 +0200
commit79fa74e5fe24e4f22487213c917fab0a38c7ba2a (patch)
tree8d35b3925b891b64a50316148d3c4a4c57ab9ded /app/client/modules/morph/views
parent8d6aa17611533c78328f048244634431ad22a8a8 (diff)
actinos. what can i say
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>