Browse Source

Fix layer manager drag and drop (#6283)

* Fix layer manager drag and drop area

* Adjust the ratio of droppable area
release-v0.22.2-rc.0
mohamed yahia 1 year ago
committed by GitHub
parent
commit
ec218d33e4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      packages/core/src/utils/sorter/LayersComponentNode.ts

5
packages/core/src/utils/sorter/LayersComponentNode.ts

@ -1,6 +1,11 @@
import { BaseComponentNode } from './BaseComponentNode'; import { BaseComponentNode } from './BaseComponentNode';
export default class LayersComponentNode extends BaseComponentNode { export default class LayersComponentNode extends BaseComponentNode {
protected _dropAreaConfig = {
ratio: 0.4,
minUndroppableDimension: 3, // In px
maxUndroppableDimension: 20, // In px
};
/** /**
* Get the associated view of this component. * Get the associated view of this component.
* @returns The view associated with the component, or undefined if none. * @returns The view associated with the component, or undefined if none.

Loading…
Cancel
Save