aboutsummaryrefslogtreecommitdiff
path: root/src/content/operators/impls/AbstractScrollOperator.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/operators/impls/AbstractScrollOperator.ts')
-rw-r--r--src/content/operators/impls/AbstractScrollOperator.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/content/operators/impls/AbstractScrollOperator.ts b/src/content/operators/impls/AbstractScrollOperator.ts
new file mode 100644
index 0000000..f8d9f70
--- /dev/null
+++ b/src/content/operators/impls/AbstractScrollOperator.ts
@@ -0,0 +1,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;
+ }
+}