Closed hfcRed closed 3 months ago
@hfcRed Currently no events are set as passive
, we also sometimes do call preventDefault
inside these functions so it may not work. Would you be able to provide a minimal reproduction so I can investigate further, thank you
Putting
position: relative
,position: absolute
,position: fixed
or transforms of any kind on any element in the DOM can sometimes cause thetouchmove
event from the document to cascade onto the element and unrelated elements, which causes significant performance drops when scrolling on mobile, especially on Chrome.The performance drop can be resolved by setting the
touchmove
to be passive rather than blocking. I have looked through the documentation and could not find a setting for changing the event handler to passive or opting out of event handlers all together (I do not need any for my usecase).Am I overlooking something? Is there an easy fix for this?