Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/canvas/container/src/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,12 @@ const setSelectRect = (

const getElementDurationTime = (elementId?: string) => {
const element = elementId ? querySelectById(elementId) : getDocument().body
let delayTime = 50
if (!element) {
return delayTime
}
const transitionDuration = window.getComputedStyle(element).getPropertyValue('transition-duration')
const transitionDelay = window.getComputedStyle(element).getPropertyValue('transition-delay')
let delayTime = 0
const getMaxMillisecondNumber = (arr: string[]) => {
const millisecondNumber = arr.map((item) => {
const unit = item.slice(-2)
Expand Down