mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(picker-column): add cancelable check to avoid intervention error in chrome (#22140)
resolves #22137
This commit is contained in:
@ -250,7 +250,9 @@ export class PickerColumnCmp implements ComponentInterface {
|
|||||||
// We have to prevent default in order to block scrolling under the picker
|
// We have to prevent default in order to block scrolling under the picker
|
||||||
// but we DO NOT have to stop propagation, since we still want
|
// but we DO NOT have to stop propagation, since we still want
|
||||||
// some "click" events to capture
|
// some "click" events to capture
|
||||||
detail.event.preventDefault();
|
if (detail.event.cancelable) {
|
||||||
|
detail.event.preventDefault();
|
||||||
|
}
|
||||||
detail.event.stopPropagation();
|
detail.event.stopPropagation();
|
||||||
|
|
||||||
hapticSelectionStart();
|
hapticSelectionStart();
|
||||||
@ -272,7 +274,9 @@ export class PickerColumnCmp implements ComponentInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private onMove(detail: GestureDetail) {
|
private onMove(detail: GestureDetail) {
|
||||||
detail.event.preventDefault();
|
if (detail.event.cancelable) {
|
||||||
|
detail.event.preventDefault();
|
||||||
|
}
|
||||||
detail.event.stopPropagation();
|
detail.event.stopPropagation();
|
||||||
|
|
||||||
// update the scroll position relative to pointer start position
|
// update the scroll position relative to pointer start position
|
||||||
|
Reference in New Issue
Block a user