Don't mount nodes to Views on click
Summary: Initially, we used to mount nodes to Views anytime a node was clicked. This was not useful, since we could still not handle touch when a touch event was already dispatched. Later, a fix was pushed that supported handling touch events for non-View NodeRegions. Part of the intention was to remove this code, but it was forgotten. Reviewed By: sriramramani Differential Revision: D3160532
This commit is contained in:
parent
c1474cc671
commit
5d6e73d0eb
|
@ -453,13 +453,9 @@ public class FlatUIImplementation extends UIImplementation {
|
|||
node = node.getParent();
|
||||
}
|
||||
|
||||
FlatShadowNode nonVirtualNode = (FlatShadowNode) node;
|
||||
nonVirtualNode.forceMountToView();
|
||||
mStateBuilder.ensureBackingViewIsCreated(nonVirtualNode);
|
||||
|
||||
FlatUIViewOperationQueue operationsQueue = mStateBuilder.getOperationsQueue();
|
||||
operationsQueue.enqueueSetJSResponder(
|
||||
nonVirtualNode.getReactTag(),
|
||||
node.getReactTag(),
|
||||
possiblyVirtualReactTag,
|
||||
blockNativeResponder);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue