void RenderViewObserverEfl::HandleTap(const blink::WebGestureEvent& event)
{
if (link_effect_enabled_) {
+ // In order to closely match our touch adjustment logic, we
+ // perform a hit test "for tap" using the same "padding" as the
+ // original tap event. That way, touch adjustment picks up a link
+ // for clicking, we will emit a click sound.
+ blink::WebSize size(event.data.tap.width, event.data.tap.height);
const blink::WebHitTestResult web_hit_test_result =
- render_view()->GetWebView()->hitTestResultAt(
- blink::WebPoint(event.x, event.y));
+ render_view()->GetWebView()->hitTestResultForTap(
+ blink::WebPoint(event.x, event.y), size);
if (!web_hit_test_result.absoluteLinkURL().isEmpty()) {
// we are on a link