Reshow scrollbars and disable navigator temporary show

pan-zoom
Nick O'Leary 2025-10-31 11:29:07 +00:00
parent 351d25a7d6
commit 7b6c838e7e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 22 additions and 22 deletions

View File

@ -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,

View File

@ -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 {