Bug 1030137 - For remote content respond to NS_GESTURENOTIFY_EVENT_START events indicating panning is preferred, and disable pan feedback since we currently have no scroll information for remote content. r=smaug

This commit is contained in:
Jim Mathies 2015-02-10 07:59:40 -06:00
parent 6ffcb49e5b
commit b9ba7b14a4

View File

@ -2579,6 +2579,16 @@ EventStateManager::DecideGestureEvent(WidgetGestureNotifyEvent* aEvent,
for (nsIFrame* current = targetFrame; current; for (nsIFrame* current = targetFrame; current;
current = nsLayoutUtils::GetCrossDocParentFrame(current)) { current = nsLayoutUtils::GetCrossDocParentFrame(current)) {
// e10s - mark remote content as pannable. This is a work around since
// we don't have access to remote frame scroll info here. Apz data may
// assist is solving this.
if (current && IsRemoteTarget(current->GetContent())) {
panDirection = WidgetGestureNotifyEvent::ePanBoth;
// We don't know when we reach bounds, so just disable feedback for now.
displayPanFeedback = false;
break;
}
nsIAtom* currentFrameType = current->GetType(); nsIAtom* currentFrameType = current->GetType();
// Scrollbars should always be draggable // Scrollbars should always be draggable