void RenderWidgetHostViewEfl::HandleGestureEnd() {
if (GetSelectionController()) {
- if (GetSelectionController()->GetScrollStatus())
- GetSelectionController()->SetScrollStatus(false);
-
if (should_restore_selection_menu_ && !was_scrolled_ &&
!selection_acked_on_tap_ &&
!(single_tap_performed_ &&
GetSelectionController()->GetSelectionEditable())) {
should_restore_selection_menu_ = false;
GetSelectionController()->HideHandleAndContextMenu();
- } else if (GetSelectionController()->GetSelectionStatus()) {
- GetSelectionController()->SetShowOnlyLargeHandler(
- single_tap_performed_ || restore_showing_large_handler_);
-
- GetSelectionController()->UpdateSelectionDataAndShow(
- GetSelectionController()->GetLeftRect(),
- GetSelectionController()->GetRightRect(),
- false /* unused */,
- should_restore_selection_menu_);
}
}
single_tap_performed_ = false;
was_scrolled_ = true;
if (GetSelectionController())
GetSelectionController()->SetScrollStatus(true);
+ } else if (event.type == blink::WebInputEvent::GestureScrollEnd) {
+ if (GetSelectionController()) {
+ if (GetSelectionController()->GetScrollStatus())
+ GetSelectionController()->SetScrollStatus(false);
+
+ if (GetSelectionController()->GetSelectionStatus()) {
+ GetSelectionController()->SetShowOnlyLargeHandler(
+ single_tap_performed_ || restore_showing_large_handler_);
+
+ GetSelectionController()->UpdateSelectionDataAndShow(
+ GetSelectionController()->GetLeftRect(),
+ GetSelectionController()->GetRightRect(),
+ false /* unused */,
+ should_restore_selection_menu_);
+ }
+ }
} else if (web_view_ && event.type == blink::WebInputEvent::GestureScrollUpdate) {
#ifdef TIZEN_EDGE_EFFECT
if (event.data.scrollUpdate.deltaX < 0)