// Prevent the original browser event's default behaviour when one is attached, for example page scrolling
event.preventDefault(): voidPrevent the original browser event's default behaviour when one is attached, for example page scrolling. This does not disable graph selection or dragging; use core controls such as autounselectify(), autoungrabify() and boxSelectionEnabled() for graph gestures.
Returns
voidExample
event.preventDefault();console.log(event.isDefaultPrevented()); // true