preventEventDefault method

  1. @override
bool preventEventDefault(
  1. PCanvasEvent event
)
override

Prevents PCanvasEvent.nativeEvent default behavior.

Implementation

@override
bool preventEventDefault(PCanvasEvent event) {
  var nativeEvent = event.nativeEvent;
  if (nativeEvent is Event) {
    nativeEvent.preventDefault();
    return true;
  }
  return false;
}