diff options
Diffstat (limited to 'app/client/modules')
| -rw-r--r-- | app/client/modules/morph/views/morph.app.js | 4 | ||||
| -rw-r--r-- | app/client/modules/pix2pixhd/pix2pixhd.actions.js | 40 |
2 files changed, 22 insertions, 22 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> 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) => { |
