How to prevent diagonal dragging event?
aahedi opened this issue · comments
aahedi commented
When drag diagonally it always switches tabs.
It should switch tabs only when drag horizontally left-right or right left.
Only allow vertical scrolling and horizontal sliding.
Is there a way to handle tab switching events by horizontal sliding only?
So in code, change this:
event.preventDefault();
to:
if (event.cancelable) event.preventDefault();
I have found it in: reference sources