mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
WTD-842: Fixing mouse click in a plot area gets interpreted as a marquee zoom with an extent of zero.
This commit is contained in:
@ -151,11 +151,14 @@ define(
|
||||
Math.max(a[1], b[1]) - origin[1]
|
||||
];
|
||||
|
||||
// Push the new state onto the pan-zoom stack
|
||||
panZoomStack.pushPanZoom(origin, dimensions);
|
||||
// Proceed with zoom if zoom dimensions are non zeros
|
||||
if (!(dimensions[0] === 0 && dimensions[1] === 0)) {
|
||||
// Push the new state onto the pan-zoom stack
|
||||
panZoomStack.pushPanZoom(origin, dimensions);
|
||||
|
||||
// Make sure tick marks reflect new bounds
|
||||
updateTicks();
|
||||
// Make sure tick marks reflect new bounds
|
||||
updateTicks();
|
||||
}
|
||||
}
|
||||
|
||||
// Start with the right initial drawing bounds,
|
||||
|
Reference in New Issue
Block a user