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 {
35423542 let Some(pos) = self.compute_touch_location(&evt) else {
35433543 return;
35443544 };
3545+ let slot = evt.slot();
35453546
35463547 let serial = SERIAL_COUNTER.next_serial();
35473548
@@ -3571,7 +3572,7 @@ impl State {
35713572
35723573 let start_data = TouchGrabStartData {
35733574 focus: None,
3574- slot: evt.slot(),
3575+ slot,
35753576 location: pos,
35763577 };
35773578 let start_timestamp = Duration::from_micros(evt.time());
@@ -3600,7 +3601,7 @@ impl State {
36003601 ) {
36013602 let start_data = TouchGrabStartData {
36023603 focus: None,
3603- slot: evt.slot(),
3604+ slot,
36043605 location: pos,
36053606 };
36063607 let grab = TouchMoveGrab::new(start_data, window.clone());
@@ -3623,7 +3624,7 @@ impl State {
36233624 self,
36243625 under.surface,
36253626 &DownEvent {
3626- slot: evt.slot(),
3627+ slot,
36273628 location: pos,
36283629 serial,
36293630 time: evt.time_msec(),