mirror of
https://github.com/apache/nifi.git
synced 2025-02-10 12:05:22 +00:00
NIFI-5173:
- Removing unnecessary logic in the zoom handler since the zoom event is no longer triggered during onClick. This closes #2692 Signed-off-by: Scott Aslan <scottyaslan@gmail.com>
This commit is contained in:
parent
de1ad3eb6f
commit
c3059939e8
@ -972,7 +972,6 @@
|
||||
init: function () {
|
||||
var refreshed;
|
||||
|
||||
var zoomed = false;
|
||||
var panning = false;
|
||||
|
||||
// filters zoom events as programmatically modifying the translate or scale now triggers the handlers
|
||||
@ -1022,13 +1021,8 @@
|
||||
k = d3.event.transform.k;
|
||||
}
|
||||
|
||||
// if we have zoomed, indicate that we are panning
|
||||
// to prevent deselection elsewhere
|
||||
if (zoomed) {
|
||||
panning = true;
|
||||
} else {
|
||||
zoomed = true;
|
||||
}
|
||||
// indicate that we are panning to prevent deselection in zoom.end below
|
||||
panning = true;
|
||||
|
||||
// refresh the canvas
|
||||
refreshed = nfCanvas.View.refresh({
|
||||
@ -1069,7 +1063,6 @@
|
||||
}
|
||||
|
||||
panning = false;
|
||||
zoomed = false;
|
||||
});
|
||||
|
||||
// add the behavior to the canvas and disable dbl click zoom
|
||||
|
Loading…
x
Reference in New Issue
Block a user