Skip to content
Snippets Groups Projects
Commit a1340e47 authored by Tom Robinson's avatar Tom Robinson
Browse files

Add transition for dragged columns

parent ed5ab8bd
No related branches found
No related tags found
No related merge requests found
......@@ -288,6 +288,7 @@ export default class TableInteractive extends Component {
cellRenderer = ({ key, style, rowIndex, columnIndex }: CellRendererProps) => {
const { data, isPivoted, onVisualizationClick } = this.props;
const { dragColIndex } = this.state;
const { rows, cols } = data;
const column = cols[columnIndex];
......@@ -309,6 +310,8 @@ export default class TableInteractive extends Component {
...style,
// use computed left if dragging
left: this.getColumnLeft(style, columnIndex),
// add a transition while dragging column
transition: dragColIndex != null ? "left 200ms" : null,
}}
className={cx("TableInteractive-cellWrapper", {
"TableInteractive-cellWrapper--firstColumn": columnIndex === 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment