carousel should be undraggable and text-seletable defaultly

pull/4537/head
afc163 8 years ago
parent e66604cab3
commit 920a084c21

@ -45,6 +45,7 @@ export default class Carousel extends React.Component<CarouselProps, any> {
dots: true,
arrows: false,
prefixCls: 'ant-carousel',
draggable: false,
};
render() {
@ -52,7 +53,6 @@ export default class Carousel extends React.Component<CarouselProps, any> {
if (props.effect === 'fade') {
props.fade = true;
props.draggable = false;
}
let className = props.prefixCls;

@ -6,9 +6,7 @@
position: relative;
display: block;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-touch-callout: none;
user-select: none;
-ms-touch-action: pan-y;
touch-action: pan-y;
-webkit-tap-highlight-color: transparent;

Loading…
Cancel
Save