mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
apprt/gtk-ng: fix scrolling on surface (#8080)
We forgot to specify the scroll controller's `flags` property.
This commit is contained in:
@ -1647,7 +1647,8 @@ pub const Surface = extern struct {
|
|||||||
self: *Self,
|
self: *Self,
|
||||||
) callconv(.c) c_int {
|
) callconv(.c) c_int {
|
||||||
const priv = self.private();
|
const priv = self.private();
|
||||||
if (priv.core_surface) |surface| {
|
const surface = priv.core_surface orelse return 0;
|
||||||
|
|
||||||
// Multiply precision scrolls by 10 to get a better response from
|
// Multiply precision scrolls by 10 to get a better response from
|
||||||
// touchpad scrolling
|
// touchpad scrolling
|
||||||
const multiplier: f64 = if (priv.precision_scroll) 10.0 else 1.0;
|
const multiplier: f64 = if (priv.precision_scroll) 10.0 else 1.0;
|
||||||
@ -1672,9 +1673,6 @@ pub const Surface = extern struct {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
fn imPreeditStart(
|
fn imPreeditStart(
|
||||||
_: *gtk.IMMulticontext,
|
_: *gtk.IMMulticontext,
|
||||||
self: *Self,
|
self: *Self,
|
||||||
|
@ -103,6 +103,7 @@ template $GhosttySurface: Adw.Bin {
|
|||||||
scroll => $scroll();
|
scroll => $scroll();
|
||||||
scroll-begin => $scroll_begin();
|
scroll-begin => $scroll_begin();
|
||||||
scroll-end => $scroll_end();
|
scroll-end => $scroll_end();
|
||||||
|
flags: both_axes;
|
||||||
}
|
}
|
||||||
|
|
||||||
GestureClick {
|
GestureClick {
|
||||||
|
Reference in New Issue
Block a user