-
Notifications
You must be signed in to change notification settings - Fork 120
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
Not trigger search when touch on popup clickable components #1427
Not trigger search when touch on popup clickable components #1427
Conversation
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.
I'm fine with hacky if there's no other way to do it and if we document what the hack is
ext/js/language/text-scanner.js
Outdated
*/ | ||
_createExcludeSelectorForPointerType(excludeSelector, pointerType) { | ||
if (pointerType === 'touch') { | ||
const extraSelector = '.gloss-link,.gloss-link *'; |
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 add a comment here that says what this is trying to accomplish?
Fixes #1418
Not sure if this is the cleanest solution, but the only way to know when to ignore the search on the
gloss-link
is to check iftouch
pointer type triggers the search and add the exclude selectors.