Skip to content

Conversation

mumberrymountain
Copy link
Contributor

This PR fixes issue #4757. Cannot generate issue on jsfiddle… check sample below instead.

issue4757.zip

Whereas default mobile column resizing behavior of Tabulator is to trigger resizing event during touchmove event, the resizableColumnGuide option changes this behavior so that the event is triggered on touchend event instead.

Generally, touchend event occurs when all fingers are lifted from the display, which means that event.touches.length will be 0 and event.touches[0] will be undefined, and accessing event.touches[0].clientX will cause a script error.

So, I fixed to use e.changedTouches[0].clientX instead when the resizableColumnGuide option is enabled, to avoid script error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant