How to use isDragging?
jgutierrez11 opened this issue · 1 comments
jgutierrez11 commented
I cannot find the way to implement this function, I need to detect if the user is dragging the pager
n4kz commented
Thanks for question and sorry for delayed reply. You can call isDragging()
on a reference to Pages
component. Please consider the following code:
pagesRef = React.createRef();
onSomeEvent() {
if (this.pagesRef.current.isDragging()) {
/* do something */
}
}
render() {
return (
<Pages ref={this.pagesRef} />
);
}