Merge pull request #14681 from ramonlsouza/issue-14669

fix: In Firefox, "Start a private chat" is always with hover style (2.5)
This commit is contained in:
Anton Georgiev 2022-03-28 11:55:25 -04:00 committed by GitHub
commit 996f1bb701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,10 @@ class BBBMenu extends React.Component {
<div
onClick={(e) => {
e.persist();
this.opts.autoFocus = !(['mouse', 'touch'].includes(e.nativeEvent.pointerType));
const firefoxInputSource = !([1, 5].includes(e.nativeEvent.mozInputSource)); // 1 = mouse, 5 = touch (firefox only)
const chromeInputSource = !(['mouse', 'touch'].includes(e.nativeEvent.pointerType));
this.opts.autoFocus = firefoxInputSource && chromeInputSource;
this.handleClick(e);
}}
onKeyPress={(e) => {