使用mui的时候因为在实际手机上上下滑动很容易触发到滑动左右的行为,因此想阻止掉上下滑动中的左右滑动行为;
使用的是addEventListener监听drag事件,但是不生效,warn提示
ignored attempt to cancel a touchmove event with cancelable = false, for example because scrolling is in process and can not be interrupted
在return false前把cancelable设为true也不生效,求有经验的童鞋指点指点,谢谢
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
业精于勤,荒于嬉;行成于思,毁于随。