Skip to content

Commit 6e5645b

Browse files
committed
Add code quality improvements.
1 parent 8083f18 commit 6e5645b

File tree

6 files changed

+96
-137
lines changed

6 files changed

+96
-137
lines changed

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"@types/body-parser": "^1.19.0",
8585
"@types/classnames": "^2.2.10",
8686
"@types/cors": "^2.8.6",
87-
"@types/eslint-plugin-prettier": "^3.1.0",
8887
"@types/express": "^4.17.3",
8988
"@types/history": "^4.7.6",
9089
"@types/jest": "^25.1.4",

frontend/src/app-styles.sass

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
display: none
77

88
body
9+
// In order to not highlight text etc. while dragging we need to disable these events.
910
-webkit-touch-callout: none /* iOS Safari */
1011
-webkit-user-select: none /* Safari */
1112
-khtml-user-select: none /* Konqueror HTML */
1213
-moz-user-select: none /* Old versions of Firefox */
1314
-ms-user-select: none /* Internet Explorer/Edge */
14-
user-select: none
15+
user-select: none

frontend/src/js/app/Content.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ const DragPreview = () => {
4747
if (!display) {
4848
return null;
4949
}
50-
// eslint-disable-next-line no-console
51-
console.log("PREVIEW RENDERED", item.width, item.height, style);
52-
5350
return (
5451
<PreviewItem width={item.width} height={item.height} style={style}>
5552
{item.label}
@@ -71,7 +68,7 @@ export const CustomHTML5toTouch = {
7168
backend: TouchBackend,
7269
transition: TouchTransition,
7370
options: {
74-
delayTouchStart: 100,
71+
delayTouchStart: 100, //This enables touch to scroll and touch and hold to drag.
7572
ignoreContextMenu: true
7673
},
7774
preview: true

frontend/src/js/previous-queries/list/PreviousQuery.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ class PreviousQuery extends React.Component {
182182
shared={!!query.shared}
183183
//@ts-ignore
184184
system={!!query.system || (!query.own && !query.shared)}
185-
onContextMenu={e => e.preventDefault()}
186185
>
187186
<TopInfos>
188187
<div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
declare module "react-dnd-multi-backend";
1+
declare module "react-dnd-multi-backend"; // Currently the DT types for this package are broken (the new API is missing). Until then we any this.

0 commit comments

Comments
 (0)