Skip to content

Commit

Permalink
Do not show tooltips on mWeb
Browse files Browse the repository at this point in the history
  • Loading branch information
s77rt committed Jan 6, 2023
1 parent 275b0ae commit 2c6bd3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import withWindowDimensions from '../withWindowDimensions';
import {propTypes, defaultProps} from './tooltipPropTypes';
import TooltipSense from './TooltipSense';
import makeCancellablePromise from '../../libs/MakeCancellablePromise';
import * as Browser from '../../libs/Browser';

class Tooltip extends PureComponent {
constructor(props) {
Expand Down Expand Up @@ -79,6 +80,12 @@ class Tooltip extends PureComponent {
* Display the tooltip in an animation.
*/
showTooltip() {
// On mWeb we do not show Tooltips as there are no way to hide them besides blurring.
// That's due to that fact that on mWeb there is no MouseLeave events.
if (Browser.isMobile()) {
return;
}

if (!this.state.isRendered) {
this.setState({isRendered: true});
}
Expand Down

0 comments on commit 2c6bd3e

Please sign in to comment.