mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
feat(range): range can be disabled
This commit is contained in:

committed by
Adam Bradley

parent
af289ece12
commit
ccd926b8ae
@ -356,6 +356,12 @@ export class Range {
|
||||
* @private
|
||||
*/
|
||||
pointerDown(ev: UIEvent) {
|
||||
// TODO: we could stop listening for events instead of checking this._disabled.
|
||||
// since there are a lot of events involved, this solution is
|
||||
// enough for the moment
|
||||
if (this._disabled) {
|
||||
return;
|
||||
}
|
||||
console.debug(`range, ${ev.type}`);
|
||||
|
||||
// prevent default so scrolling does not happen
|
||||
|
Reference in New Issue
Block a user