forgot to divide by 2
This commit is contained in:
1 parent
7f292f1bfe
commit
42aaa6d1b1
1 file changed
+1
-1
@@ -27,7 +27,7 @@ impl Client<'_> {
|
|||||||
if self.grabbed_cursor {
|
if self.grabbed_cursor {
|
||||||
if let Some(window) = &self.window {
|
if let Some(window) = &self.window {
|
||||||
let size = window.inner_size();
|
let size = window.inner_size();
|
||||||
window.set_cursor_position(LogicalPosition::new(size.width, size.height)).expect("wah");
|
window.set_cursor_position(LogicalPosition::new(size.width / 2, size.height / 2)).expect("wah");
|
||||||
}
|
}
|
||||||
let delta = input.mouse_delta;
|
let delta = input.mouse_delta;
|
||||||
if delta.x != 0.0 {
|
if delta.x != 0.0 {
|
||||||
|
|||||||
Reference in new issue
Block a user