aboutsummaryrefslogtreecommitdiff
path: root/src/content/operators/impls/AbstractScrollOperator.ts
blob: f8d9f70ddc85100b7b348e8fbe4ca5b6ad834988 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import SettingRepository from "../../repositories/SettingRepository";

export default class AbstractScrollOperator {
  constructor(private readonly settingRepository: SettingRepository) {}

  protected getSmoothScroll(): boolean {
    const settings = this.settingRepository.get();
    return settings.properties.smoothscroll;
  }
}