Skip to content

Commit

Permalink
fix: Prevent default drag behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinRoy committed Jul 22, 2017
1 parent 9e17a11 commit 8a10ae1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8a10ae1

Please sign in to comment.