instance.touch = false..w-slide to prevent mouse dragging.To disable dragging and touch swiping for sliders in Webflow, you'll need to modify the slider's behavior using custom code since Webflow's native slider settings do not offer a built-in toggle for this.
```javascript
<script>
$(document).ready(function () {
$('.w-slider').each(function () {
var slider = Webflow.require('slider');
var instance = slider.getInstance(this);
// Disable swipe and drag
if (instance) {
instance.touch = false;
}
});
});
</script>
```
.w-slider), accesses the instance via Webflow’s internal slider module, and sets touch to false.
```css
<style>
.w-slide {
pointer-events: none;
}
</style>
```
To disable dragging and touch swipe on Webflow sliders, inject custom jQuery to turn off internal touch behavior and optionally block pointer events with CSS. This approach ensures that users cannot swipe through slides manually.