1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00

Updated react-dnd and added touch support

Fixed: Drag and drop on mobile devices
Closes ##4429
This commit is contained in:
Mark McDowall
2021-04-24 16:23:42 -07:00
parent 47f3886d7a
commit 684626ef73
4 changed files with 61 additions and 31 deletions
+4 -6
View File
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import { DndProvider } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend';
import { DndProvider } from 'react-dnd-multi-backend';
import HTML5toTouch from 'react-dnd-multi-backend/dist/esm/HTML5toTouch';
import PageContent from 'Components/Page/PageContent';
import PageContentBody from 'Components/Page/PageContentBody';
import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector';
@@ -20,12 +20,10 @@ class Profiles extends Component {
render() {
return (
<PageContent title="Profiles">
<SettingsToolbarConnector
showSave={false}
/>
<SettingsToolbarConnector showSave={false} />
<PageContentBody>
<DndProvider backend={HTML5Backend}>
<DndProvider options={HTML5toTouch}>
<QualityProfilesConnector />
<LanguageProfilesConnector />
<DelayProfilesConnector />