blob: 36e17b0ffbb02a665549788725dd71c9a17660f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import * as types from '../../types'
import { store, history } from '../../store'
import { api, post, pad, preloadImage } from '../../util'
import actions from '../../actions'
import { session } from '../../session'
import { ZOOM_STEPS } from './constants'
export const setScrollPosition = start_ts => dispatch => (
dispatch({ type: types.align.set_display_setting, key: 'start_ts', value: start_ts })
)
export const setZoom = zoom => dispatch => {
if (0 <= zoom && zoom < ZOOM_STEPS.length) {
dispatch({ type: types.align.set_display_setting, key: 'zoom', value: zoom })
}
}
|