source: node_modules/d3-drag/src/noevent.js

Last change on this file was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 396 bytes
RevLine 
[e4c61dd]1// These are typically used in conjunction with noevent to ensure that we can
2// preventDefault on the event.
3export const nonpassive = {passive: false};
4export const nonpassivecapture = {capture: true, passive: false};
5
6export function nopropagation(event) {
7 event.stopImmediatePropagation();
8}
9
10export default function(event) {
11 event.preventDefault();
12 event.stopImmediatePropagation();
13}
Note: See TracBrowser for help on using the repository browser.