From 8a10ae15a1da2f5256c4527cb00cfb673133c024 Mon Sep 17 00:00:00 2001 From: Quentin Roy Date: Sat, 22 Jul 2017 09:52:29 +0700 Subject: [PATCH] fix: Prevent default drag behavior. --- src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index dd910ef..2cdc1a7 100644 --- a/src/index.js +++ b/src/index.js @@ -26,7 +26,10 @@ export default ( watchDrags(parentDOM), model, config - ); + ).do(({ originalEvent }) => { + // Prevent default on every notifications. + if (originalEvent) originalEvent.preventDefault(); + }); // Connect the engine notifications to menu opening/closing. const connectedEngineNotif$ = connectEngineToMenu( parentDOM,