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:
commit
996f1bb701
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user