Scroll smoothly to the right (#4735)

This commit is contained in:
abcang authored and Eugen Rochko committed 2017-08-29 17:06:19 +02:00
1 parent 7be620775e
commit f59ed3a4fa
2 files changed
+16 -2

No files matched your search

+1 -1
View File
@@ -26,5 +26,5 @@ const scroll = (node, key, target) => {
};
};
export const scrollRight = (node) => scroll(node, 'scrollLeft', node.scrollWidth);
export const scrollRight = (node, position) => scroll(node, 'scrollLeft', position);
export const scrollTop = (node) => scroll(node, 'scrollTop', 0);