OlivierCC / spfx-40-fantastics

This package is a sample kit of Client Side Web Parts built on the SharePoint Framework SPFx. You can find here different kind of high visual web parts as carousel, images galleries, animations, map, editors, etc.
MIT License
412 stars 277 forks source link

News carousel: Unable to swipe on cards in mobile view #105

Closed ishanisuchak closed 5 years ago

ishanisuchak commented 5 years ago

I am able to swipe when in desktop view. Even, in a mobile browser, on switching to desktop view, users are able to swipe. But, in mobile view, the swipe functionality is completely disabled and we can change the slide only by using the navigation arrows or dots. Is this a known issue of the webpart?

ishanisuchak commented 5 years ago

I had created an SPFx webpart using the react-slick package and was able to see the same issue for mobile browsers. However, I was able to workaround the issue for now, by adding the'ms-Overlay' class to HTML elements that i want to be swipeable. I found on debugging that MS is blocking the touchMove event for all elements that do not have this class associated to them. This might solve the issue for this webpart too. For now, it looks like a blocker from MS, so closing this issue.

Refer to this issue for further clarification: SharePoint/sp-dev-docs#4632