mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
VizTooltips: Fix drag-zoom causing annotation init in other shared-cursor panels (#82986)
This commit is contained in:
parent
f23f50f58d
commit
edb799bf82
@ -341,8 +341,10 @@ export const TooltipPlugin2 = ({
|
||||
});
|
||||
|
||||
config.addHook('setSelect', (u) => {
|
||||
if (clientZoom || queryZoom != null) {
|
||||
if (maybeZoomAction(u.cursor!.event)) {
|
||||
let e = u.cursor!.event;
|
||||
|
||||
if (e != null && (clientZoom || queryZoom != null)) {
|
||||
if (maybeZoomAction(e)) {
|
||||
if (clientZoom && yDrag) {
|
||||
if (u.select.height >= MIN_ZOOM_DIST) {
|
||||
for (let key in u.scales!) {
|
||||
|
Loading…
Reference in New Issue
Block a user