preventEventDefault method
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;
}