-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove touchInputEnabled and pointerEventsEnabled #1576
Conversation
CodSpeed Performance ReportMerging #1576 will not alter performanceComparing Summary
|
ext/js/language/text-scanner.js
Outdated
} else if (this._arePointerEventsSupported()) { | ||
eventListenerInfos = this._getPointerEventListeners(capture); | ||
} else { | ||
eventListenerInfos = [...this._getMouseEventListeners(capture)]; | ||
if (this._scanWithoutMousemove) { | ||
eventListenerInfos.push(...this._getKeyboardEventListeners(capture)); | ||
} | ||
if (this._touchInputEnabled) { | ||
eventListenerInfos.push(...this._getTouchEventListeners(capture)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need to call these functions to register the event listeners for touch and pen. Only need to remove the if check for this._touchInputEnabled
and this._pointerEventsEnabled
since we are removing these options and having them true
by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might only want one or the other. According to #466, only pointer events should be required. Though I've never seen any browser that doesn't support both equally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe need to test if this breaks touch behavior on popup components.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So is the ask here to restore
} else if (this._arePointerEventsSupported()) {
eventListenerInfos = this._getPointerEventListeners(capture);
and keep this line?
278807d
to
0ac18d7
Compare
Closing in favor of #1585 |
Fixes #466
I just followed instructions of removing the option and related code and very lightly tested functionality