mirror of https://github.com/node-red/node-red.git
Add minimap auto-show for zoom button/hotkey interactions
- Emit view:navigate event in animatedZoomView onStart callback - Minimap now appears when using zoom buttons (in/out/reset/fit) - Minimap now appears when using zoom hotkeys (Ctrl+/-/0/1) - Auto-hides after 2 seconds as expected - Applies to all animated zoom operations consistentlypan-zoom
parent
79918f0187
commit
47026ec744
|
|
@ -3119,6 +3119,10 @@ RED.view = (function() {
|
|||
outer.attr("width", space_width * scaleFactor).attr("height", space_height * scaleFactor);
|
||||
RED.view.navigator.resize();
|
||||
},
|
||||
onStart: function() {
|
||||
// Show minimap when zoom animation starts
|
||||
RED.events.emit("view:navigate");
|
||||
},
|
||||
onEnd: function() {
|
||||
cancelInProgressAnimation = null;
|
||||
// Ensure scaleFactor is exactly the target to prevent precision issues
|
||||
|
|
|
|||
Loading…
Reference in New Issue