Skip to content

Commit

Permalink
add passive events support to touchstart and mousewheel events
Browse files Browse the repository at this point in the history
  • Loading branch information
jgadsden committed Feb 10, 2025
1 parent ec5e08a commit 684017d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions td.vue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions td.vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"electron-updater": "^6.3.0",
"is-electron": "^2.2.1",
"jquery": "^3.7.1",
"passive-events-support": "^1.1.0",
"uuid": "^8.3.2",
"vue": "^2.7.3",
"vue-i18n": "^8.27.2",
Expand Down
5 changes: 5 additions & 0 deletions td.vue/src/service/migration/diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ import graphFactory from '@/service/x6/graph/graph.js';
import events from '@/service/x6/graph/events.js';
import store from '@/store/index.js';
import tmActions from '@/store/actions/threatmodel.js';
import { passiveSupport } from 'passive-events-support/src/utils';

const appVersion = require('../../../package.json').version;

passiveSupport({
events: ['touchstart', 'mousewheel']
});

const drawV1 = (diagram, graph) => {
const { nodes, edges } = cells.map(diagram);
const batchName = 'td-init';
Expand Down

0 comments on commit 684017d

Please sign in to comment.