diff --git a/ReactCommon/fabric/components/view/TouchEventEmitter.cpp b/ReactCommon/fabric/components/view/TouchEventEmitter.cpp index c18a6282238..4b582c6ba47 100644 --- a/ReactCommon/fabric/components/view/TouchEventEmitter.cpp +++ b/ReactCommon/fabric/components/view/TouchEventEmitter.cpp @@ -64,19 +64,19 @@ void TouchEventEmitter::dispatchTouchEvent( } void TouchEventEmitter::onTouchStart(TouchEvent const &event) const { - dispatchTouchEvent("touchStart", event, EventPriority::SynchronousUnbatched); + dispatchTouchEvent("touchStart", event, EventPriority::AsynchronousBatched); } void TouchEventEmitter::onTouchMove(TouchEvent const &event) const { - dispatchTouchEvent("touchMove", event, EventPriority::SynchronousBatched); + dispatchTouchEvent("touchMove", event, EventPriority::AsynchronousBatched); } void TouchEventEmitter::onTouchEnd(TouchEvent const &event) const { - dispatchTouchEvent("touchEnd", event, EventPriority::SynchronousBatched); + dispatchTouchEvent("touchEnd", event, EventPriority::AsynchronousBatched); } void TouchEventEmitter::onTouchCancel(TouchEvent const &event) const { - dispatchTouchEvent("touchCancel", event, EventPriority::SynchronousBatched); + dispatchTouchEvent("touchCancel", event, EventPriority::AsynchronousBatched); } } // namespace react diff --git a/ReactCommon/fabric/core/events/EventDispatcher.cpp b/ReactCommon/fabric/core/events/EventDispatcher.cpp index 793c003d328..dd08e2330ca 100644 --- a/ReactCommon/fabric/core/events/EventDispatcher.cpp +++ b/ReactCommon/fabric/core/events/EventDispatcher.cpp @@ -13,8 +13,6 @@ #include "RawEvent.h" #include "UnbatchedEventQueue.h" -#define REACT_FABRIC_SYNC_EVENT_DISPATCHING_DISABLED - namespace facebook { namespace react { @@ -58,10 +56,6 @@ void EventDispatcher::dispatchStateUpdate( } const EventQueue &EventDispatcher::getEventQueue(EventPriority priority) const { -#ifdef REACT_FABRIC_SYNC_EVENT_DISPATCHING_DISABLED - priority = EventPriority::AsynchronousBatched; -#endif - return *eventQueues_[(int)priority]; }