Use PhysicalPosition in PixelDelta event

This removes the `LogicalPosition` from the `PixelDelta`, since all
other APIs have been switched to use `PhysicalPosition` instead.

Fixes #1406.
This commit is contained in:
Christian Duerr 2020-07-26 22:16:21 +00:00 committed by GitHub
parent 55dff53a98
commit 40232d48ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 19 deletions

View file

@ -37,7 +37,7 @@ use instant::Instant;
use std::path::PathBuf;
use crate::{
dpi::{LogicalPosition, PhysicalPosition, PhysicalSize},
dpi::{PhysicalPosition, PhysicalSize},
platform_impl,
window::{Theme, WindowId},
};
@ -764,7 +764,7 @@ pub enum MouseScrollDelta {
/// Scroll events are expressed as a PixelDelta if
/// supported by the device (eg. a touchpad) and
/// platform.
PixelDelta(LogicalPosition<f64>),
PixelDelta(PhysicalPosition<f64>),
}
/// Symbolic name for a keyboard key.