mirror of https://github.com/node-red/node-red.git
Reshow scrollbars and disable navigator temporary show
parent
351d25a7d6
commit
7b6c838e7e
|
|
@ -194,23 +194,23 @@ RED.view.navigator = (function() {
|
|||
|
||||
// Listen for canvas interactions to show minimap temporarily
|
||||
// Only show on actual pan/zoom navigation, not selection changes
|
||||
RED.events.on("view:navigate", function() {
|
||||
showTemporary();
|
||||
});
|
||||
// RED.events.on("view:navigate", function() {
|
||||
// showTemporary();
|
||||
// });
|
||||
|
||||
// Show minimap briefly when workspace changes (includes initial load)
|
||||
RED.events.on("workspace:change", function(event) {
|
||||
// Only show if there's an active workspace with nodes
|
||||
if (event.workspace && RED.nodes.getWorkspaceOrder().length > 0) {
|
||||
// Small delay to ensure nodes are rendered
|
||||
setTimeout(function() {
|
||||
var activeNodes = RED.nodes.filterNodes({z: event.workspace});
|
||||
if (activeNodes.length > 0) {
|
||||
showTemporary();
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
});
|
||||
// RED.events.on("workspace:change", function(event) {
|
||||
// // Only show if there's an active workspace with nodes
|
||||
// if (event.workspace && RED.nodes.getWorkspaceOrder().length > 0) {
|
||||
// // Small delay to ensure nodes are rendered
|
||||
// setTimeout(function() {
|
||||
// var activeNodes = RED.nodes.filterNodes({z: event.workspace});
|
||||
// if (activeNodes.length > 0) {
|
||||
// showTemporary();
|
||||
// }
|
||||
// }, 100);
|
||||
// }
|
||||
// });
|
||||
},
|
||||
refresh: refreshNodes,
|
||||
resize: resizeNavBorder,
|
||||
|
|
|
|||
|
|
@ -41,13 +41,13 @@
|
|||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
// Hide scrollbars
|
||||
scrollbar-width: none; /* Firefox */
|
||||
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
||||
&::-webkit-scrollbar { /* WebKit */
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
// Hide scrollbars - to be done in a future iteration
|
||||
// scrollbar-width: none; /* Firefox */
|
||||
// -ms-overflow-style: none; /* Internet Explorer 10+ */
|
||||
// &::-webkit-scrollbar { /* WebKit */
|
||||
// width: 0;
|
||||
// height: 0;
|
||||
// }
|
||||
|
||||
// Reset SVG default margins
|
||||
> svg {
|
||||
|
|
|
|||
Loading…
Reference in New Issue