Skip to content

Commit 6289207

Browse files
authored
removed swipe gesture from plugin page (#1160)
1 parent 56c59af commit 6289207

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/tabView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Ref from "html-tag-js/ref";
66
* @param {string} param0.id
77
* @returns
88
*/
9-
export default function TabView({ id }, children) {
9+
export default function TabView({ id, disableSwipe = false }, children) {
1010
let moveX = 0;
1111
let moveY = 0;
1212
let lastX = 0;
@@ -17,7 +17,7 @@ export default function TabView({ id }, children) {
1717
<div
1818
ref={el}
1919
onclick={changeTab}
20-
ontouchstart={ontouchstart}
20+
ontouchstart={!disableSwipe ? ontouchstart : null}
2121
className="main"
2222
id={id}
2323
>

src/pages/plugin/plugin.view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default (props) => {
114114
</div>
115115
<MoreInfo {...props} />
116116
</div>
117-
<TabView id="plugin-tab">
117+
<TabView id="plugin-tab" disableSwipe={true}>
118118
<div className="options" onclick={handleTabClick}>
119119
<span className="tab active" data-tab="overview" tabindex="0">
120120
Overview

0 commit comments

Comments
 (0)