From fd719c93f4590baeb3390bc75d253e12168b68f7 Mon Sep 17 00:00:00 2001 From: Adel Khamatov Date: Fri, 13 Dec 2024 15:48:18 +0200 Subject: [PATCH] fix: call `dxpointercancel` after `dragstart` for safari --- packages/devextreme/js/__internal/events/pointer/m_mouse.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/devextreme/js/__internal/events/pointer/m_mouse.ts b/packages/devextreme/js/__internal/events/pointer/m_mouse.ts index 8735c366d8d..9083f2584ff 100644 --- a/packages/devextreme/js/__internal/events/pointer/m_mouse.ts +++ b/packages/devextreme/js/__internal/events/pointer/m_mouse.ts @@ -7,7 +7,8 @@ const eventMap = { dxpointerdown: 'mousedown', dxpointermove: 'mousemove', dxpointerup: 'mouseup', - dxpointercancel: 'pointercancel', + // `dragstart` is used for safari: https://bugs.webkit.org/show_bug.cgi?id=222632 + dxpointercancel: 'pointercancel dragstart', dxpointerover: 'mouseover', dxpointerout: 'mouseout', dxpointerenter: 'mouseenter',