A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
309 B
21 lines
309 B
7 years ago
|
import { SCROLL_GET, SCROLL_SET } from '../shared/messages';
|
||
|
import * as ipc from './ipc';
|
||
|
|
||
|
const get = (tabId) => {
|
||
|
return ipc.send({
|
||
|
type: SCROLL_GET,
|
||
|
tabId,
|
||
|
});
|
||
|
};
|
||
|
|
||
|
const set = (tabId, x, y) => {
|
||
|
return ipc.send({
|
||
|
type: SCROLL_SET,
|
||
|
tabId,
|
||
|
x,
|
||
|
y,
|
||
|
});
|
||
|
};
|
||
|
|
||
|
export { get, set };
|