forge
Explore
Log in

Don't you dare go Hollow

Extract evt.slot()

Browse files at this commit

e2b9838d8944c0a2e30da7ba4c1c69dd25abc243Ivan MolodetskikhParent: 816a0d4
src/input/mod.rsmodified+4 -3
@@ -3542,6 +3542,7 @@ impl State {
3542 let Some(pos) = self.compute_touch_location(&evt) else {3542 let Some(pos) = self.compute_touch_location(&evt) else {
3543 return;3543 return;
3544 };3544 };
3545+ let slot = evt.slot();
3545 3546
3546 let serial = SERIAL_COUNTER.next_serial();3547 let serial = SERIAL_COUNTER.next_serial();
3547 3548
@@ -3571,7 +3572,7 @@ impl State {
3571 3572
3572 let start_data = TouchGrabStartData {3573 let start_data = TouchGrabStartData {
3573 focus: None,3574 focus: None,
3574- slot: evt.slot(),3575+ slot,
3575 location: pos,3576 location: pos,
3576 };3577 };
3577 let start_timestamp = Duration::from_micros(evt.time());3578 let start_timestamp = Duration::from_micros(evt.time());
@@ -3600,7 +3601,7 @@ impl State {
3600 ) {3601 ) {
3601 let start_data = TouchGrabStartData {3602 let start_data = TouchGrabStartData {
3602 focus: None,3603 focus: None,
3603- slot: evt.slot(),3604+ slot,
3604 location: pos,3605 location: pos,
3605 };3606 };
3606 let grab = TouchMoveGrab::new(start_data, window.clone());3607 let grab = TouchMoveGrab::new(start_data, window.clone());
@@ -3623,7 +3624,7 @@ impl State {
3623 self,3624 self,
3624 under.surface,3625 under.surface,
3625 &DownEvent {3626 &DownEvent {
3626- slot: evt.slot(),3627+ slot,
3627 location: pos,3628 location: pos,
3628 serial,3629 serial,
3629 time: evt.time_msec(),3630 time: evt.time_msec(),