fabric-vectr 6.7.6 → 6.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -366,7 +366,7 @@
366
366
  }
367
367
  const cache = new Cache();
368
368
 
369
- var version = "6.7.6";
369
+ var version = "6.7.7";
370
370
 
371
371
  // use this syntax so babel plugin see this import here
372
372
  const VERSION = version;
@@ -16110,11 +16110,11 @@
16110
16110
  if (target === activeObject) {
16111
16111
  const pointer = this.getViewportPoint(e);
16112
16112
  target =
16113
- // first search active objects for a target to remove
16114
- this.searchPossibleTargets(prevActiveObjects, pointer) ||
16115
- // if not found, search under active selection for a target to add
16116
- // `prevActiveObjects` will be searched but we already know they will not be found
16117
- this.searchPossibleTargets(this.getSearchTargets(), pointer);
16113
+ // first search under active selection for a target to add
16114
+ // will search from top level to bottom
16115
+ this.searchPossibleTargets(this.getSearchTargets(), pointer) ||
16116
+ // if not found, search active objects for a target to remove
16117
+ this.searchPossibleTargets(prevActiveObjects, pointer);
16118
16118
 
16119
16119
  // if nothing is found bail out
16120
16120
  if (!target || !target.selectable) {