Skip to content

Commit

Permalink
Core: fix animation/fx test part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanblinov2k17 committed Oct 14, 2024
1 parent 95e1117 commit 00c5566
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/devextreme/js/animation/fx.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
getEasing
} from './easing';
import { requestAnimationFrame, cancelAnimationFrame } from './frame';
import { transitionEndEventName, transition } from '../core/utils/support';
import supportUtils from '../__internal/core/utils/m_support';
import positionUtils from './position';
import { removeEvent } from '../events/remove';
import { addNamespace } from '../events/utils/index';
Expand Down Expand Up @@ -94,7 +94,7 @@ const TransitionAnimationStrategy = {
const transitionEndFired = new Deferred();
const simulatedTransitionEndFired = new Deferred();
let simulatedEndEventTimer;
const transitionEndEventFullName = transitionEndEventName() + '.dxFX';
const transitionEndEventFullName = supportUtils.transitionEndEventName() + '.dxFX';

config.transitionAnimation.cleanup = function() {
clearTimeout(simulatedEndEventTimer);
Expand Down Expand Up @@ -377,13 +377,13 @@ const FallbackToNoAnimationStrategy = {
const getAnimationStrategy = function(config) {
config = config || {};
const animationStrategies = {
'transition': transition() ? TransitionAnimationStrategy : FrameAnimationStrategy,
'transition': supportUtils.transition() ? TransitionAnimationStrategy : FrameAnimationStrategy,
'frame': FrameAnimationStrategy,
'noAnimation': FallbackToNoAnimationStrategy
};
let strategy = config.strategy || 'transition';

if(config.type === 'css' && !transition()) {
if(config.type === 'css' && !supportUtils.transition()) {
strategy = 'noAnimation';
}

Expand Down

0 comments on commit 00c5566

Please sign in to comment.