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