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 have 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 an entire 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 concept is that this multi hearth is the issue for why my disable scrolling features aren’t working.

[ad_2]

Leave a Reply