javascript – IOS firing a number of occasion cycles

[ad_1]

I’ve constructed a carousel that disables vertical scroll if scrolling horizontally on the web page, and disables horizontal scroll of the carousel if scrolling vertically on the web page. This works as supposed on android however not on IOS.

I am noticing on IOS that after I take a look at the dev instruments (utilizing browserstack to spoof) I am getting a number of occasion cycles firing (contact begin, contact transfer, contact finish) if the consumer swipes. They at all times hearth as a whole set. All of them hearth even when the consumer hasn’t really eliminated their finger. The longer the swipe, the extra cycles of those occasions hearth. Why is that this occurring? My idea is that this multi hearth is the issue for why my disable scrolling capabilities aren’t working.

[ad_2]

Leave a Reply