🐛 Fixes #1364 - Incorrect mouse selection when zoomed in or out (#1498)

Prior to this change, the mouse selection box had a fixed position on the page. Nodes have absolute
position within NodeView. This inconsistency in positioning caused issues when calculating
if a node was positioned within the mouse selection. This solution makes both nodes
and mouse selection have consistent positioning, along with correctly calculating the
mouse click position within NodeView when making a selection.
This commit is contained in:
Jon Bake
2021-02-28 11:08:14 -06:00
committed by GitHub
parent 725b3eb408
commit 54f949a972
2 changed files with 30 additions and 18 deletions

View File

@@ -2139,6 +2139,7 @@ export default mixins(
position: relative;
width: 100%;
height: 100%;
transform-origin: 0 0;
}
.node-view-background {