diff --git a/packages/gallery/src/components/item/itemView.js b/packages/gallery/src/components/item/itemView.js index e40003620..7006c30da 100644 --- a/packages/gallery/src/components/item/itemView.js +++ b/packages/gallery/src/components/item/itemView.js @@ -722,16 +722,16 @@ class ItemView extends React.Component { switch (slideAnimation) { case GALLERY_CONSTS.slideAnimations.FADE: slideAnimationStyles = { - left: isRTL ? 'auto' : 0, - right: !isRTL ? 'auto' : 0, + left: isRTL ? 'auto' : '0px !important', + right: !isRTL ? 'auto' : '0px !important', pointerEvents: activeIndex === idx ? 'auto' : 'none', zIndex: activeIndex === idx ? 0 : 1, }; break; case GALLERY_CONSTS.slideAnimations.DECK: slideAnimationStyles = { - left: isRTL ? 'auto' : 0, - right: !isRTL ? 'auto' : 0, + left: isRTL ? 'auto' : '0px !important', + right: !isRTL ? 'auto' : '0px !important', pointerEvents: activeIndex === idx ? 'auto' : 'none', zIndex: Math.sign(activeIndex - idx), };