isSecondPointerAllowed method
Implementation
@override
bool isSecondPointerAllowed(PointerEvent event) {
if (_initialButtons == null) {
switch (event.buttons) {
case kPrimaryButton:
if (onDown == null && onStart == null && onUpdate == null && onEnd == null && onCancel == null) {
return false;
}
break;
default:
return false;
}
} else {
// There can be multiple drags simultaneously. Their effects are combined.
if (event.buttons != _initialButtons) {
return false;
}
}
return super.isSecondPointerAllowed(event);
}