From 79fa74e5fe24e4f22487213c917fab0a38c7ba2a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 14:28:56 +0200 Subject: actinos. what can i say --- app/client/modules/morph/views/morph.app.js | 4 +-- app/client/modules/pix2pixhd/pix2pixhd.actions.js | 40 +++++++++++------------ 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'app') 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)) })} /> @@ -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)) })} /> diff --git a/app/client/modules/pix2pixhd/pix2pixhd.actions.js b/app/client/modules/pix2pixhd/pix2pixhd.actions.js index 8e481d3..21c405c 100644 --- a/app/client/modules/pix2pixhd/pix2pixhd.actions.js +++ b/app/client/modules/pix2pixhd/pix2pixhd.actions.js @@ -123,29 +123,29 @@ export const load_directories = (id) => (dispatch) => { resultsFolder, }, }) - if (id) { - console.log('folder id', id) - dispatch({ - type: types.dataset.set_folder, - data: { - folder_id: id, - module - }, - }) - } + // if (id) { + // console.log('folder id', id) + // dispatch({ + // type: types.dataset.set_folder, + // data: { + // folder_id: id, + // module + // }, + // }) + // } }).catch(e => { console.error(e) }) - if (id) { - console.log('folder id', id) - dispatch({ - type: types.dataset.set_folder, - data: { - folder_id: id, - module - }, - }) - } + // if (id) { + // console.log('folder id', id) + // dispatch({ + // type: types.dataset.set_folder, + // data: { + // folder_id: id, + // module + // }, + // }) + // } } export const load_results = (id) => (dispatch) => { -- cgit v1.2.3-70-g09d2