From 920a084c21116290195e8afdcffe22bf7d084238 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 9 Jan 2017 23:21:18 +0800 Subject: [PATCH] carousel should be undraggable and text-seletable defaultly --- components/carousel/index.tsx | 2 +- components/carousel/style/index.less | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/components/carousel/index.tsx b/components/carousel/index.tsx index e664fa1d2e..e2d7634969 100644 --- a/components/carousel/index.tsx +++ b/components/carousel/index.tsx @@ -45,6 +45,7 @@ export default class Carousel extends React.Component { dots: true, arrows: false, prefixCls: 'ant-carousel', + draggable: false, }; render() { @@ -52,7 +53,6 @@ export default class Carousel extends React.Component { if (props.effect === 'fade') { props.fade = true; - props.draggable = false; } let className = props.prefixCls; diff --git a/components/carousel/style/index.less b/components/carousel/style/index.less index c2ff5626f2..cef67990b3 100644 --- a/components/carousel/style/index.less +++ b/components/carousel/style/index.less @@ -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;