Procházet zdrojové kódy

fix(feedback-dialog) Removed mouseover on mobile

j8
robertpin před 3 roky
rodič
revize
58ef72dce5
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 5
- 2
react/features/feedback/components/FeedbackDialog.web.js Zobrazit soubor

@@ -11,6 +11,7 @@ import {
11 11
     sendAnalytics
12 12
 } from '../../analytics';
13 13
 import { Dialog } from '../../base/dialog';
14
+import { isMobileBrowser } from '../../base/environment/utils';
14 15
 import { translate } from '../../base/i18n';
15 16
 import { connect } from '../../base/redux';
16 17
 import { cancelFeedback, submitFeedback } from '../actions';
@@ -222,9 +223,11 @@ class FeedbackDialog extends Component<Props, State> {
222 223
                         key = { index }
223 224
                         onClick = { config._onClick }
224 225
                         onKeyPress = { config._onKeyPres }
225
-                        onMouseOver = { config._onMouseOver }
226 226
                         role = 'button'
227
-                        tabIndex = { 0 }>
227
+                        tabIndex = { 0 }
228
+                        { ...(isMobileBrowser() ? {} : {
229
+                            onMouseOver: config._onMouseOver
230
+                        }) }>
228 231
                         { isFilled
229 232
                             ? <StarFilledIcon
230 233
                                 label = 'star-filled'

Načítá se…
Zrušit
Uložit