aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/client/scrolls.js
blob: f8f82e90866995c53f91e792d10256035aaa3310 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 };