[fuchsia] Change Touch response to YES (flutter/engine#30041)

This commit is contained in:
Emircan Uysaler
2021-12-02 14:38:30 -05:00
committed by GitHub
parent b473bbbb42
commit d7a828ff3d
2 changed files with 4 additions and 7 deletions

View File

@@ -356,7 +356,7 @@ void PointerDelegate::WatchLoop(
InsertIntoBuffer(std::move(events), &to_client);
}
// For this simple client, always claim we want the gesture.
response.set_response_type(fup_TouchResponseType::YES_PRIORITIZE);
response.set_response_type(fup_TouchResponseType::YES);
}
if (event.has_interaction_result()) {
const auto& result = event.interaction_result();

View File

@@ -343,14 +343,11 @@ TEST_F(PointerDelegateTest, Protocol_ResponseMatchesEarlierEvents) {
EXPECT_FALSE(responses.value()[0].has_response_type());
// Events 1-3 had a sample, must have a response.
EXPECT_TRUE(responses.value()[1].has_response_type());
EXPECT_EQ(responses.value()[1].response_type(),
fup_TouchResponseType::YES_PRIORITIZE);
EXPECT_EQ(responses.value()[1].response_type(), fup_TouchResponseType::YES);
EXPECT_TRUE(responses.value()[2].has_response_type());
EXPECT_EQ(responses.value()[2].response_type(),
fup_TouchResponseType::YES_PRIORITIZE);
EXPECT_EQ(responses.value()[2].response_type(), fup_TouchResponseType::YES);
EXPECT_TRUE(responses.value()[3].has_response_type());
EXPECT_EQ(responses.value()[3].response_type(),
fup_TouchResponseType::YES_PRIORITIZE);
EXPECT_EQ(responses.value()[3].response_type(), fup_TouchResponseType::YES);
}
TEST_F(PointerDelegateTest, Protocol_LateGrant) {