was_scrolled_ = true;
if (GetSelectionController())
GetSelectionController()->SetScrollStatus(true);
- } else if (web_view_ && event.type == blink::WebInputEvent::GestureScrollUpdate) {
+ } else
+#endif
+ DCHECK(edge_effect_.get());
+ if (event.type == blink::WebInputEvent::GestureScrollUpdate) {
if (event.data.scrollUpdate.deltaX < 0)
edge_effect_->Hide("edge,left");
else if (event.data.scrollUpdate.deltaX > 0)
edge_effect_->Hide("edge,top");
else if (event.data.scrollUpdate.deltaY > 0)
edge_effect_->Hide("edge,bottom");
- } else if (web_view_ && event.type == blink::WebInputEvent::GesturePinchBegin) {
+ } else if (event.type == blink::WebInputEvent::GesturePinchBegin) {
edge_effect_->Disable();
- } else if (web_view_ && event.type == blink::WebInputEvent::GesturePinchEnd) {
+ } else if (event.type == blink::WebInputEvent::GesturePinchEnd) {
edge_effect_->Enable();
}
-#endif
}
void RenderWidgetHostViewEfl::HandleGesture(ui::GestureEvent* event) {