I have a function to get position of a swiper, this works when triggered from click but not from touch move or start. Any idea how to fix this?
<div is="dmx-swiper" id="swiper1" class="sw-pages-snapscroll" speed="250" dmx-style:pointer-events="swiper2.index == 1 ? 'none' : 'all'" observer="true" dmx-on:touchmove="swiper1TouchHandler()"
function swiper1TouchHandler() {
var s = $("#swiper1 > .swiper-wrapper:eq(0)");
var x = $(s).offset().left;
dmx.parse("swiper1Xpos.setValue('" + x + "')")
}
Message from chrome:
[Violation] Added non-passive event listener to a scroll-blocking ‘touchmove’ event. Consider marking event handler as ‘passive’ to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
Tested in chrome & ios safari
Community Page
Last updated:
Last updated: