aboutsummaryrefslogtreecommitdiff
path: root/src/content/controllers/MarkController.ts
blob: 5eb898af9cc6ef34ac6112644e9a80bbc0e12ade (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { injectable } from 'tsyringe';
import * as messages from '../../shared/messages';
import MarkUseCase from '../usecases/MarkUseCase';

@injectable()
export default class MarkController {
  constructor(
    private markUseCase: MarkUseCase,
  ) {
  }

  scrollTo(message: messages.TabScrollToMessage) {
    this.markUseCase.scroll(message.x, message.y);
  }
}