feat(range): range can be disabled

This commit is contained in:
Manu Mtz.-Almeida
2016-06-08 15:46:31 +02:00
committed by Adam Bradley
parent af289ece12
commit ccd926b8ae
4 changed files with 35 additions and 1 deletions

View File

@ -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