Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在滑块缩放时禁用滑动功能,以确保当用户拖动图像进行缩放时,他们不会触发滑动到下一张或上一张幻灯片。
我尝试使用allowTouchMove,但这仅适用于chrome,不适用于safari、firefox或edge。
使用allowSlidePrev,allowSlideNext禁用缩放上的上一张和下一张幻灯片,但是当我单击画廊缩略图时,它也会禁用那里的点击。是否有另一种禁用滑动事件的方法,但允许拖动,并且图库事件是可点击的?
我之前也试过这个,在文档中没有发现任何线索。
请注意,启用缩放时实际上很难滑动到其他幻灯片(至少在 v6.0.4 中)。因此,只有当尝试足够长且足够强大时,刷卡者才会刷卡。
所以......我认为这是维护者所期望的行为。