Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VS Code/MindElixir/MindElixir.js
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ const rn = function(e, t, n) {
const o = S(e);
return o ? this.selectNode(o) : void 0;
}
e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n);
e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, this.map.focus(), t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n);
}
}, cn = function() {
this.currentNode && (this.currentNode.className = ""), this.currentNode = null, this.bus.fire("unselectNode");
Expand Down
13 changes: 12 additions & 1 deletion VS Code/webpack.dev.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
mode: 'development',
Expand Down Expand Up @@ -35,5 +36,15 @@ module.exports = {
devtool: 'source-map',
optimization: {
minimize: false // Keep readable for debugging
}
},
plugins: [
new CopyWebpackPlugin({
patterns: [
{
from: 'MindElixir/MindElixir.js',
to: 'MindElixir/MindElixir.js'
}
]
})
]
};
2 changes: 1 addition & 1 deletion Visual Studio/CodeMindMap/MindElixir/MindElixir.js
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ const rn = function(e, t, n) {
const o = S(e);
return o ? this.selectNode(o) : void 0;
}
e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n);
e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, this.map.focus(), t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n);
}
}, cn = function() {
this.currentNode && (this.currentNode.className = ""), this.currentNode = null, this.bus.fire("unselectNode");
Expand Down
Loading