Discard last recorded mouse movements in tester
This commit is contained in:
parent
14de69704d
commit
d64cb0d9c1
1 changed files with 9 additions and 0 deletions
|
|
@ -152,6 +152,15 @@ impl<P: Program + 'static> Tester<P> {
|
|||
return Task::none();
|
||||
};
|
||||
|
||||
while let Some(Instruction::Interact(
|
||||
instruction::Interaction::Mouse(instruction::Mouse::Move(
|
||||
_,
|
||||
)),
|
||||
)) = self.instructions.last()
|
||||
{
|
||||
let _ = self.instructions.pop();
|
||||
}
|
||||
|
||||
let (state, window) = emulator.into_state();
|
||||
|
||||
self.state = State::Ready { state, window };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue