From 3e23689d28cdf27a07487be9a9772a3272ed8477 Mon Sep 17 00:00:00 2001 From: Anders L <43879067+anders-lassen@users.noreply.github.com> Date: Wed, 29 Jan 2025 18:03:10 +0100 Subject: [PATCH] Added extra disabled check --- src/js/components/Drag/Drag.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/components/Drag/Drag.ts b/src/js/components/Drag/Drag.ts index 9cf2be23..c35d93ed 100644 --- a/src/js/components/Drag/Drag.ts +++ b/src/js/components/Drag/Drag.ts @@ -148,7 +148,7 @@ export function Drag( Splide: Splide, Components: Components, options: Options ) emit( EVENT_DRAG ); } - if ( e.cancelable ) { + if ( e.cancelable && ! disabled ) { if ( dragging ) { Move.translate( basePosition + constrain( diffCoord( e ) ) ); @@ -183,7 +183,7 @@ export function Drag( Splide: Splide, Components: Components, options: Options ) emit( EVENT_DRAGGED ); } - if ( dragging ) { + if ( dragging && ! disabled ) { move( e ); prevent( e ); }