Skip to content

Commit e77167f

Browse files
committed
rollback excessive event sending fix
1 parent 6446baa commit e77167f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ReactQt/runtime/src/rootview.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class RootViewPrivate : public QObject {
5353
RootView* q_ptr;
5454
bool remoteJSDebugging = false;
5555
QNetworkReply* liveReloadUrlReply = nullptr;
56-
QSet<ulong> m_processedEvents;
56+
// QSet<ulong> m_processedEvents;
5757

5858
RootViewPrivate(RootView* q) : q_ptr(q) {}
5959

@@ -331,11 +331,11 @@ void RootView::componentComplete() {
331331
void RootView::sendMouseEvent(QMouseEvent* event, const QString& eventType, QQuickItem* receiver) {
332332
Q_D(RootView);
333333

334-
if (d->m_processedEvents.contains(event->timestamp())) {
335-
return;
336-
} else {
337-
d->m_processedEvents.clear();
338-
}
334+
// if (d->m_processedEvents.contains(event->timestamp())) {
335+
// return;
336+
// } else {
337+
// d->m_processedEvents.clear();
338+
// }
339339

340340
QVariantMap e = makeReactTouchEvent(receiver, event);
341341
if (e.isEmpty())
@@ -344,7 +344,7 @@ void RootView::sendMouseEvent(QMouseEvent* event, const QString& eventType, QQui
344344
d->bridge->enqueueJSCall("RCTEventEmitter",
345345
"receiveTouches",
346346
QVariantList{normalizeInputEventName(eventType), QVariantList{e}, QVariantList{0}});
347-
d->m_processedEvents.insert(event->timestamp());
347+
// d->m_processedEvents.insert(event->timestamp());
348348
event->setAccepted(true);
349349
}
350350

0 commit comments

Comments
 (0)