Skip to content

Commit 217ee75

Browse files
committed
Remove need to press twice for mobile devices in mode switch
1 parent 5cb998e commit 217ee75

File tree

1 file changed

+6
-6
lines changed
  • packages/app/src/app/components/ModeIcons

1 file changed

+6
-6
lines changed

packages/app/src/app/components/ModeIcons/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function getCurrentMode({
1717
setPreviewView,
1818
}) {
1919
const both = (
20-
<Tooltip title="Show Split view">
20+
<Tooltip touchHold title="Show Split view">
2121
<ViewIcon onClick={setMixedView} active={showEditor && showPreview}>
2222
<EditorIcon half />
2323
<PreviewIcon half />
@@ -26,15 +26,15 @@ function getCurrentMode({
2626
);
2727

2828
const editor = (
29-
<Tooltip title="Show Editor view">
29+
<Tooltip touchHold title="Show Editor view">
3030
<ViewIcon onClick={setEditorView} active={showEditor && !showPreview}>
3131
<EditorIcon />
3232
</ViewIcon>
3333
</Tooltip>
3434
);
3535

3636
const preview = (
37-
<Tooltip title="Show Preview view">
37+
<Tooltip touchHold title="Show Preview view">
3838
<ViewIcon onClick={setPreviewView} active={!showEditor && showPreview}>
3939
<PreviewIcon />
4040
</ViewIcon>
@@ -147,18 +147,18 @@ export default class ModeIcons extends React.PureComponent {
147147

148148
return (
149149
<Tooltips>
150-
<Tooltip title="Show Editor view">
150+
<Tooltip title="Editor View">
151151
<ViewIcon onClick={setEditorView} active={showEditor && !showPreview}>
152152
<EditorIcon />
153153
</ViewIcon>
154154
</Tooltip>
155-
<Tooltip title="Show Split view">
155+
<Tooltip title="Split View">
156156
<ViewIcon onClick={setMixedView} active={showEditor && showPreview}>
157157
<EditorIcon half />
158158
<PreviewIcon half />
159159
</ViewIcon>
160160
</Tooltip>
161-
<Tooltip title="Show Preview view">
161+
<Tooltip title="Preview View">
162162
<ViewIcon
163163
onClick={setPreviewView}
164164
active={!showEditor && showPreview}

0 commit comments

Comments
 (0)