-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mouse button history #1474
base: gtk4
Are you sure you want to change the base?
mouse button history #1474
Conversation
src/book-viewer.js
Outdated
@@ -261,6 +261,18 @@ | |||
}, | |||
})) | |||
|
|||
// Mouse Forward/Backward |
Check warning
Code scanning / ESLint
Enforce consistent indentation Warning
src/book-viewer.js
Outdated
@@ -261,6 +261,18 @@ | |||
}, | |||
})) | |||
|
|||
// Mouse Forward/Backward | |||
const gestureForward = new Gtk.GestureClick() |
Check warning
Code scanning / ESLint
Enforce consistent indentation Warning
src/book-viewer.js
Outdated
@@ -261,6 +261,18 @@ | |||
}, | |||
})) | |||
|
|||
// Mouse Forward/Backward | |||
const gestureForward = new Gtk.GestureClick() | |||
const gestureBack = new Gtk.GestureClick() |
Check warning
Code scanning / ESLint
Enforce consistent indentation Warning
src/book-viewer.js
Outdated
// Mouse Forward/Backward | ||
const gestureForward = new Gtk.GestureClick() | ||
const gestureBack = new Gtk.GestureClick() | ||
gestureForward.set_button(9) |
Check warning
Code scanning / ESLint
Enforce consistent indentation Warning
src/book-viewer.js
Outdated
const gestureForward = new Gtk.GestureClick() | ||
const gestureBack = new Gtk.GestureClick() | ||
gestureForward.set_button(9) | ||
gestureBack.set_button(8) |
Check warning
Code scanning / ESLint
Enforce consistent indentation Warning
src/book-viewer.js
Outdated
gestureBack.set_button(8) | ||
this.#webView.add_controller(utils.connect(gestureForward,{ | ||
"pressed": () => this.#exec('reader.view.history.forward') | ||
})) |
Check warning
Code scanning / ESLint
Enforce consistent indentation Warning
src/book-viewer.js
Outdated
this.#webView.add_controller(utils.connect(gestureForward,{ | ||
"pressed": () => this.#exec('reader.view.history.forward') | ||
})) | ||
this.#webView.add_controller(utils.connect(gestureBack,{ |
Check warning
Code scanning / ESLint
Enforce consistent indentation Warning
src/book-viewer.js
Outdated
"pressed": () => this.#exec('reader.view.history.forward') | ||
})) | ||
this.#webView.add_controller(utils.connect(gestureBack,{ | ||
"pressed": () => this.#exec('reader.view.history.back') |
Check warning
Code scanning / ESLint
Enforce the consistent use of either backticks, double, or single quotes Warning
src/book-viewer.js
Outdated
"pressed": () => this.#exec('reader.view.history.back') | ||
})) |
Check warning
Code scanning / ESLint
Require or disallow trailing commas Warning
src/book-viewer.js
Outdated
})) | ||
this.#webView.add_controller(utils.connect(gestureBack,{ | ||
"pressed": () => this.#exec('reader.view.history.back') | ||
})) |
Check warning
Code scanning / ESLint
Enforce consistent indentation Warning
Can you fix the formatting warning? You fix them by running |
Fixed! |
Maps mouse forward/backward buttons to
reader.view.history
.Reference: