wip, buggy
This commit is contained in:
parent
163314353b
commit
e0b83ebd70
2 changed files with 100 additions and 50 deletions
|
|
@ -144,7 +144,7 @@ export class DragDropManager {
|
|||
let eventElement = target;
|
||||
|
||||
while (eventElement && eventElement.tagName !== 'SWP-EVENTS-LAYER') {
|
||||
if (eventElement.tagName === 'SWP-EVENT' || eventElement.tagName === 'SWP-ALLDAY-EVENT') {
|
||||
if (eventElement.tagName === 'SWP-EVENT') {
|
||||
break;
|
||||
}
|
||||
eventElement = eventElement.parentElement as HTMLElement;
|
||||
|
|
@ -496,7 +496,7 @@ export class DragDropManager {
|
|||
*/
|
||||
private isAllDayEventBeingDragged(): boolean {
|
||||
if (!this.originalElement) return false;
|
||||
return this.originalElement.tagName === 'SWP-ALLDAY-EVENT';
|
||||
return this.originalElement.dataset.displayType === 'allday';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue