diff --git a/package-lock.json b/package-lock.json index b43b1d9..fa3480c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.11", "license": "Apache-2.0", "dependencies": { - "dragselect": "^3.0.4" + "dragselect": "^2.7.4" }, "devDependencies": { "@blockly/dev-scripts": "^3.1.1", @@ -1847,9 +1847,9 @@ ] }, "node_modules/chai": { - "version": "4.3.10", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.10.tgz", - "integrity": "sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.0.tgz", + "integrity": "sha512-x9cHNq1uvkCdU+5xTkNh5WtgD4e4yDFCsp9jVc7N7qVeKeftv3gO/ZrviX5d+3ZfxdYnZXZYujjRInu1RogU6A==", "dev": true, "dependencies": { "assertion-error": "^1.1.0", @@ -2364,9 +2364,9 @@ } }, "node_modules/dragselect": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dragselect/-/dragselect-3.0.4.tgz", - "integrity": "sha512-LkGjPpkBGsIFyM9UsOM0wkMhUHuwhlHCDouufy2Zyroghhoj0RHSXnl78imvDWdlvFUk3Q5SXTXh0HfAC/NMrw==" + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/dragselect/-/dragselect-2.7.4.tgz", + "integrity": "sha512-j0qFl4xvsyImlSTn9erDCCT4SSPUMssgKAYuKqhsPr8WPphLghHfjDd4WR2jLjL91fTQQlbbIJ/7T2qwD2hghQ==" }, "node_modules/ee-first": { "version": "1.1.1", diff --git a/package.json b/package.json index 7fdd219..96a066a 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "src" ], "dependencies": { - "dragselect": "^3.0.4" + "dragselect": "^2.7.4" }, "devDependencies": { "@blockly/dev-scripts": "^3.1.1", diff --git a/src/multiselect_controls.js b/src/multiselect_controls.js index 9f7f26f..9e5d873 100644 --- a/src/multiselect_controls.js +++ b/src/multiselect_controls.js @@ -399,7 +399,7 @@ export class MultiselectControls { return {select, unselect}; }; - this.dragSelect_.subscribe('DS:select', (info) => { + this.dragSelect_.subscribe('elementselect', (info) => { const element = info.item.parentElement; if (inMultipleSelectionModeWeakMap.get(this.workspace_) && element && element.dataset && element.dataset.id) { @@ -407,7 +407,7 @@ export class MultiselectControls { this.workspace_.getBlockById(element.dataset.id)); } }); - this.dragSelect_.subscribe('DS:unselect', (info) => { + this.dragSelect_.subscribe('elementunselect', (info) => { const element = info.item.parentElement; if (inMultipleSelectionModeWeakMap.get(this.workspace_) && element && element.dataset && element.dataset.id) {