aboutsummaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/operators/impls/ClipboardOperatorFactoryChain.ts3
-rw-r--r--src/content/operators/impls/FollowOperatorFactoryChain.ts3
-rw-r--r--src/content/operators/impls/HorizontalScrollOperator.ts3
-rw-r--r--src/content/operators/impls/PageScrollOperator.ts3
-rw-r--r--src/content/operators/impls/ScrollOperatorFactoryChain.ts3
-rw-r--r--src/content/operators/impls/ScrollToBottomOperator.ts3
-rw-r--r--src/content/operators/impls/ScrollToEndOperator.ts3
-rw-r--r--src/content/operators/impls/ScrollToHomeOperator.ts3
-rw-r--r--src/content/operators/impls/ScrollToTopOperator.ts3
-rw-r--r--src/content/operators/impls/VerticalScrollOperator.ts3
-rw-r--r--src/content/presenters/ScrollPresenter.ts8
11 files changed, 22 insertions, 16 deletions
diff --git a/src/content/operators/impls/ClipboardOperatorFactoryChain.ts b/src/content/operators/impls/ClipboardOperatorFactoryChain.ts
index 454aea1..3ae4442 100644
--- a/src/content/operators/impls/ClipboardOperatorFactoryChain.ts
+++ b/src/content/operators/impls/ClipboardOperatorFactoryChain.ts
@@ -12,7 +12,8 @@ import URLRepository from "./URLRepository";
@injectable()
export default class ClipboardOperatorFactoryChain
- implements OperatorFactoryChain {
+ implements OperatorFactoryChain
+{
constructor(
@inject("ClipboardRepository")
private readonly clipboardRepository: ClipboardRepository,
diff --git a/src/content/operators/impls/FollowOperatorFactoryChain.ts b/src/content/operators/impls/FollowOperatorFactoryChain.ts
index 588e1a4..3867ed2 100644
--- a/src/content/operators/impls/FollowOperatorFactoryChain.ts
+++ b/src/content/operators/impls/FollowOperatorFactoryChain.ts
@@ -7,7 +7,8 @@ import * as operations from "../../../shared/operations";
@injectable()
export default class FollowOperatorFactoryChain
- implements OperatorFactoryChain {
+ implements OperatorFactoryChain
+{
constructor(
@inject("FollowMasterClient")
private followMasterClient: FollowMasterClient
diff --git a/src/content/operators/impls/HorizontalScrollOperator.ts b/src/content/operators/impls/HorizontalScrollOperator.ts
index f813f85..41287e8 100644
--- a/src/content/operators/impls/HorizontalScrollOperator.ts
+++ b/src/content/operators/impls/HorizontalScrollOperator.ts
@@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository";
export default class HorizontalScrollOperator
extends AbstractScrollOperator
- implements Operator {
+ implements Operator
+{
constructor(
private readonly presenter: ScrollPresenter,
settingRepository: SettingRepository,
diff --git a/src/content/operators/impls/PageScrollOperator.ts b/src/content/operators/impls/PageScrollOperator.ts
index 377bf92..fbe4dbe 100644
--- a/src/content/operators/impls/PageScrollOperator.ts
+++ b/src/content/operators/impls/PageScrollOperator.ts
@@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository";
export default class PageScrollOperator
extends AbstractScrollOperator
- implements Operator {
+ implements Operator
+{
constructor(
private readonly presenter: ScrollPresenter,
settingRepository: SettingRepository,
diff --git a/src/content/operators/impls/ScrollOperatorFactoryChain.ts b/src/content/operators/impls/ScrollOperatorFactoryChain.ts
index 6847aea..8c5cea2 100644
--- a/src/content/operators/impls/ScrollOperatorFactoryChain.ts
+++ b/src/content/operators/impls/ScrollOperatorFactoryChain.ts
@@ -14,7 +14,8 @@ import ScrollToEndOperator from "./ScrollToEndOperator";
@injectable()
export default class ScrollOperatorFactoryChain
- implements OperatorFactoryChain {
+ implements OperatorFactoryChain
+{
constructor(
@inject("ScrollPresenter")
private readonly scrollPresenter: ScrollPresenter,
diff --git a/src/content/operators/impls/ScrollToBottomOperator.ts b/src/content/operators/impls/ScrollToBottomOperator.ts
index 4db521b..d17ff46 100644
--- a/src/content/operators/impls/ScrollToBottomOperator.ts
+++ b/src/content/operators/impls/ScrollToBottomOperator.ts
@@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository";
export default class ScrollToBottomOperator
extends AbstractScrollOperator
- implements Operator {
+ implements Operator
+{
constructor(
private readonly presenter: ScrollPresenter,
settingRepository: SettingRepository
diff --git a/src/content/operators/impls/ScrollToEndOperator.ts b/src/content/operators/impls/ScrollToEndOperator.ts
index 8217e15..9469a29 100644
--- a/src/content/operators/impls/ScrollToEndOperator.ts
+++ b/src/content/operators/impls/ScrollToEndOperator.ts
@@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository";
export default class ScrollToEndOperator
extends AbstractScrollOperator
- implements Operator {
+ implements Operator
+{
constructor(
private readonly presenter: ScrollPresenter,
settingRepository: SettingRepository
diff --git a/src/content/operators/impls/ScrollToHomeOperator.ts b/src/content/operators/impls/ScrollToHomeOperator.ts
index a0d7701..f7b1bf6 100644
--- a/src/content/operators/impls/ScrollToHomeOperator.ts
+++ b/src/content/operators/impls/ScrollToHomeOperator.ts
@@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository";
export default class ScrollToHomeOperator
extends AbstractScrollOperator
- implements Operator {
+ implements Operator
+{
constructor(
private readonly presenter: ScrollPresenter,
settingRepository: SettingRepository
diff --git a/src/content/operators/impls/ScrollToTopOperator.ts b/src/content/operators/impls/ScrollToTopOperator.ts
index 6075758..cba59eb 100644
--- a/src/content/operators/impls/ScrollToTopOperator.ts
+++ b/src/content/operators/impls/ScrollToTopOperator.ts
@@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository";
export default class ScrollToTopOperator
extends AbstractScrollOperator
- implements Operator {
+ implements Operator
+{
constructor(
private readonly presenter: ScrollPresenter,
settingRepository: SettingRepository
diff --git a/src/content/operators/impls/VerticalScrollOperator.ts b/src/content/operators/impls/VerticalScrollOperator.ts
index 4ab336c..d852c28 100644
--- a/src/content/operators/impls/VerticalScrollOperator.ts
+++ b/src/content/operators/impls/VerticalScrollOperator.ts
@@ -5,7 +5,8 @@ import SettingRepository from "../../repositories/SettingRepository";
export default class VerticalScrollOperator
extends AbstractScrollOperator
- implements Operator {
+ implements Operator
+{
constructor(
private readonly presenter: ScrollPresenter,
settingRepository: SettingRepository,
diff --git a/src/content/presenters/ScrollPresenter.ts b/src/content/presenters/ScrollPresenter.ts
index 78bec00..3f39784 100644
--- a/src/content/presenters/ScrollPresenter.ts
+++ b/src/content/presenters/ScrollPresenter.ts
@@ -21,12 +21,8 @@ const canBeScrolled = (element: Element): boolean => {
// Check if the element's overflow and visibility permit scrolling.
// Credit: https://github.com/philc/vimium/blob/bdf654aebe6f570f427c5f7bc9592cad86e642b5/content_scripts/scroller.js#L74
const isScrollableStyle = (element: Element): boolean => {
- const {
- overflowX,
- overflowY,
- overflow,
- visibility,
- } = window.getComputedStyle(element);
+ const { overflowX, overflowY, overflow, visibility } =
+ window.getComputedStyle(element);
if ([overflow, overflowX, overflowY].includes("hidden")) {
return false;
}