Closed iskandarreza closed 1 year ago
I can confirm this also happens when just zooming out really quickly with the mousewheel. Has there been any traction on this? Happy to take a look if there's been no movement.
I suspect something is negated in the viewport without being handled correctly
got the same problem any news ?
got the same problem any news ?
I get the feeling this repository is somewhat abandoned; last commit was 6 months ago...
yeah got the same feeling
this patch fixes the problem:
const fs = require('fs');
const path = require('path');
const loadRetePath = path.resolve(__dirname, '../node_modules/rete/build/rete.esm.js');
fs.writeFileSync(
loadRetePath,
fs
.readFileSync(loadRetePath, 'utf8')
.replace(
'var delta = (wheelDelta ? wheelDelta / 120 : -e.deltaY / 3) * this.intensity;',
'var delta = (wheelDelta ? wheelDelta / 120 : -e.deltaY / 50) * this.intensity;',
),
);
yeah got the same feeling
this patch fixes the problem:
const fs = require('fs'); const path = require('path'); const loadRetePath = path.resolve(__dirname, '../node_modules/rete/build/rete.esm.js'); fs.writeFileSync( loadRetePath, fs .readFileSync(loadRetePath, 'utf8') .replace( 'var delta = (wheelDelta ? wheelDelta / 120 : -e.deltaY / 3) * this.intensity;', 'var delta = (wheelDelta ? wheelDelta / 120 : -e.deltaY / 50) * this.intensity;', ), );
where should i write this code?
i have react-app where i use rete js
its a postinstall patch so you have to run it after npm install
example (package.json):
"scripts": {
"postinstall": "node ./scripts/rete-patch.js"
},
its a postinstall patch so you have to run it after npm install
example (package.json):
"scripts": { "postinstall": "node ./scripts/rete-patch.js" },
Thanks!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Background: When I'm double-clicking on a node, the editor zooms in really close to the node. So I zoom out and sometimes it zooms out really fast and really far out. Then when I try to zoom back in/out quickly the whole editor flips upside down.