fix: reverse sctk scroll direction
This commit is contained in:
parent
9668fd9821
commit
ac9b0cd357
1 changed files with 4 additions and 4 deletions
|
|
@ -136,14 +136,14 @@ impl PointerHandler for SctkState {
|
|||
device_id: Default::default(),
|
||||
delta: if horizontal.discrete > 0 {
|
||||
MouseScrollDelta::LineDelta(
|
||||
horizontal.discrete as f32,
|
||||
vertical.discrete as f32,
|
||||
-horizontal.discrete as f32,
|
||||
-vertical.discrete as f32,
|
||||
)
|
||||
} else {
|
||||
MouseScrollDelta::PixelDelta(
|
||||
PhysicalPosition::new(
|
||||
horizontal.absolute,
|
||||
vertical.absolute,
|
||||
-horizontal.absolute,
|
||||
-vertical.absolute,
|
||||
),
|
||||
)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue