mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
6ffcb49e5b
commit
b9ba7b14a4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user